feat(download manager): syncs state to disk to persist across reboots
This commit is contained in:
parent
e4df4eb2d7
commit
b5568429f5
1 changed files with 2 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue