Skip to content

Commit

Permalink
feat: configurable autostart + autostart watchers + port
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbrayo committed Dec 6, 2024
1 parent 814406e commit 7c87209
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ pub(crate) fn get_config() -> &'static Config {
} else {
let config = Config::default();
let config_str = toml::to_string(&config).expect("Failed to serialize config");
std::fs::create_dir_all(config_path.parent().unwrap())
.expect("Failed to create config dir");
std::fs::write(config_path, config_str).expect("Failed to write config file");
config
}
Expand Down

0 comments on commit 7c87209

Please sign in to comment.