* fix: version data not being attached to process manager push

* fix: clippy
This commit is contained in:
DecDuck
2025-08-15 23:02:01 +10:00
committed by GitHub
parent 17c375bcab
commit ec6294b8e7

View File

@ -172,10 +172,23 @@ impl ProcessManager<'_> {
let _ = self.app_handle.emit("launch_external_error", &game_id);
}
let status = GameStatusManager::fetch_state(&game_id, &db_handle);
drop(db_handle);
// This is too many unwraps for me to be comfortable
let version_data = db_handle
.applications
.game_versions
.get(&game_id)
.unwrap()
.get(&meta.version.unwrap())
.unwrap();
push_game_update(&self.app_handle, &game_id, None, status);
let status = GameStatusManager::fetch_state(&game_id, &db_handle);
push_game_update(
&self.app_handle,
&game_id,
Some(version_data.clone()),
status,
);
}
fn fetch_process_handler(