Write a config file if it is missing

This commit is contained in:
Philip
2022-03-12 07:44:26 +01:00
parent 4cc2672c5f
commit a942c3c016
3 changed files with 41 additions and 17 deletions
+1
View File
@@ -25,6 +25,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
#[cfg(not(feature = "ui"))]
{
let settings = settings::Settings::new()?;
settings::Settings::write_config_if_missing();
sync::run_sync(&settings).await
}
}