feat(download manager): syncs state to disk to persist across reboots

This commit is contained in:
DecDuck
2024-12-04 17:29:46 +11:00
parent 9dc052691d
commit e6553e6ed1
@@ -103,6 +103,8 @@ impl DownloadManagerBuilder {
.games
.games_statuses
.insert(id.clone(), status.clone());
drop(db_handle);
DB.save().unwrap();
self.app_handle
.emit(
&format!("update_game/{}", id),