1
0
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:
2022-02-05 18:05:04 +08:00
parent a242b1b12d
commit f965abf581
4 changed files with 32 additions and 16 deletions

View File

@ -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()),
}
}
}

View File

@ -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(());