mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 00:02:41 +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
|
||||||
.games_statuses
|
.games_statuses
|
||||||
.insert(id.clone(), status.clone());
|
.insert(id.clone(), status.clone());
|
||||||
|
drop(db_handle);
|
||||||
|
DB.save().unwrap();
|
||||||
self.app_handle
|
self.app_handle
|
||||||
.emit(
|
.emit(
|
||||||
&format!("update_game/{}", id),
|
&format!("update_game/{}", id),
|
||||||
|
|||||||
Reference in New Issue
Block a user