closing without waiting should still disconnect

This commit is contained in:
SpikeHD
2023-05-12 17:35:51 -07:00
parent 732e020eb3
commit 302754d486

View File

@@ -230,6 +230,13 @@ fn main() -> Result<(), ArgsError> {
gamebanana::list_submissions,
gamebanana::list_mods
])
.on_window_event(|event| match event.event() {
tauri::WindowEvent::CloseRequested { api, .. } => {
// Ensure all proxy stuff is handled
disconnect();
}
_ => {}
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
} else {