mirror of
https://github.com/Tim-Paik/neutauri.git
synced 2024-10-12 23:29:41 +00:00
fix config dir
This commit is contained in:
@ -238,7 +238,7 @@ impl Default for Config {
|
||||
max_inner_size: None,
|
||||
resizable: true,
|
||||
fullscreen: false,
|
||||
title: "".to_string(),
|
||||
title: "".into(),
|
||||
maximized: false,
|
||||
visible: true,
|
||||
transparent: false,
|
||||
@ -246,9 +246,9 @@ impl Default for Config {
|
||||
always_on_top: false,
|
||||
window_icon: None,
|
||||
spa: false,
|
||||
url: Some("/index.html".to_string()),
|
||||
url: Some("/index.html".into()),
|
||||
html: None,
|
||||
initialization_script: Some("".to_string()),
|
||||
initialization_script: Some("".into()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ fn options() -> fs::OpenOptions {
|
||||
fn main() -> wry::Result<()> {
|
||||
let arg = std::env::args()
|
||||
.nth(1)
|
||||
.unwrap_or_else(|| "neutauri.toml".to_string());
|
||||
.unwrap_or_else(|| "neutauri.toml".into());
|
||||
if arg == "--help" || arg == "-h" {
|
||||
println!("Usage: neutauri_bundler [neutauri.toml]");
|
||||
return Ok(());
|
||||
|
Reference in New Issue
Block a user