Redirect more domains

This commit is contained in:
Thoronium
2023-06-18 16:10:22 -06:00
parent 742a24df11
commit 190adb1d52
6 changed files with 101 additions and 21 deletions

View File

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