always unpatch game on close

This commit is contained in:
SpikeHD
2022-07-13 18:55:06 -07:00
parent 33c733ce97
commit 7cbb600a7f
2 changed files with 11 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ fn enable_process_watcher(window: tauri::Window,process: String) {
*WATCH_GAME_PROCESS.lock().unwrap() = "".to_string();
disconnect();
window.emit("game_closed", &()).unwrap();
break;
}
}