mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
closing without waiting should still disconnect
This commit is contained in:
@@ -230,6 +230,13 @@ fn main() -> Result<(), ArgsError> {
|
|||||||
gamebanana::list_submissions,
|
gamebanana::list_submissions,
|
||||||
gamebanana::list_mods
|
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!())
|
.run(tauri::generate_context!())
|
||||||
.expect("error while running tauri application");
|
.expect("error while running tauri application");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user