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 e4df4eb2d7
commit b5568429f5

View File

@ -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),