mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-16 23:40:32 +08:00
chore: tray hotkey (#6373)
This commit is contained in:
parent
25a83388bb
commit
09ea979cf7
@ -19,5 +19,6 @@
|
|||||||
- 隐藏日志中的订阅信息
|
- 隐藏日志中的订阅信息
|
||||||
- 优化部分界面文案文本
|
- 优化部分界面文案文本
|
||||||
- 优化切换节点时的延迟
|
- 优化切换节点时的延迟
|
||||||
|
- 优化托盘退出快捷键显示
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
@ -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)?;
|
let separator = &PredefinedMenuItem::separator(app_handle)?;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user