mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 19:22:44 +08:00
chore: tray hotkey (#6373)
This commit is contained in:
@@ -834,7 +834,12 @@ async fn create_tray_menu(
|
||||
],
|
||||
)?;
|
||||
|
||||
let quit = &MenuItem::with_id(app_handle, MenuIds::EXIT, &texts.exit, true, Some("CmdOrControl+Q"))?;
|
||||
let quit_accelerator = hotkeys.get("quit").map(|s| s.as_str());
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
let quit_accelerator = quit_accelerator.or(Some("Cmd+Q"));
|
||||
|
||||
let quit = &MenuItem::with_id(app_handle, MenuIds::EXIT, &texts.exit, true, quit_accelerator)?;
|
||||
|
||||
let separator = &PredefinedMenuItem::separator(app_handle)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user