feat(download manager): update db state with ui and emit events

This commit is contained in:
DecDuck
2024-11-28 20:31:04 +11:00
parent 95109899b7
commit 9dc052691d
8 changed files with 144 additions and 48 deletions
+5
View File
@@ -33,6 +33,11 @@ pub struct Game {
m_cover_id: String,
m_image_library: Vec<String>,
}
#[derive(serde::Serialize, Clone)]
pub struct GameUpdateEvent {
pub game_id: String,
pub status: DatabaseGameStatus,
}
fn fetch_library_logic(app: AppHandle) -> Result<String, RemoteAccessError> {
let base_url = DB.fetch_base_url();