feat(cache): Implemented caching for game metadata

This commit is contained in:
quexeky
2025-02-08 11:09:11 +11:00
parent 9977107374
commit 4c59c5d6c1
6 changed files with 16 additions and 16 deletions

View File

@ -74,7 +74,8 @@ pub fn update_settings(new_settings: Value) {
}
let new_settings: Settings = serde_json::from_value(current_settings).unwrap();
db_lock.settings = new_settings;
println!("new Settings: {:?}", db_lock.settings);
drop(db_lock);
save_db();
}
#[tauri::command]
pub fn fetch_settings() -> Settings {