mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 08:12:44 +10:00
feat(download manager): syncs state to disk to persist across reboots
This commit is contained in:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user