fix: the shortcut key to exit cannot be used

This commit is contained in:
huzibaca
2024-09-18 01:41:46 +08:00
parent 25f15e12cf
commit 49929bd473
4 changed files with 29 additions and 3 deletions

View File

@@ -429,7 +429,10 @@ fn on_menu_event(app_handle: &AppHandle, event: MenuEvent) {
"open_logs_dir" => crate::log_err!(cmds::open_logs_dir()),
"restart_clash" => feat::restart_clash_core(),
"restart_app" => tauri::process::restart(&app_handle.env()),
"quit" => cmds::exit_app(app_handle.clone()),
"quit" => {
println!("quit");
feat::quit();
}
_ => {}
}
}