mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Use config folder (#110)
This commit is contained in:
@@ -127,8 +127,9 @@ impl MyEguiApp {
|
||||
});
|
||||
}
|
||||
|
||||
fn save_settings_to_file(settings: &Settings) {
|
||||
pub fn save_settings_to_file(settings: &Settings) {
|
||||
let toml = toml::to_string(&settings).unwrap();
|
||||
std::fs::write("config.toml", toml).unwrap();
|
||||
let config_path = crate::config::get_config_file();
|
||||
std::fs::write(config_path, toml).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user