feat: try to read existing config

This commit is contained in:
itsscb 2025-07-24 10:31:12 +02:00
parent 12b5e61f52
commit 1b945d09b1

View File

@ -45,6 +45,14 @@ impl Default for App {
}
dir.push("config.json");
if dir.exists()
&& let Ok(v) = fs::read_to_string(&dir)
&& let Ok(app) = serde_json::from_str(&v)
{
return app;
}
Self {
logs: vec![],
config: dir,