fix: always occupies hotkey globally when app launch silently (#5866)

* fix: always occupies hotkey when app launch silently

* docs: update Changelog.md

* chore: update
This commit is contained in:
oomeow
2025-12-18 22:21:15 +08:00
committed by GitHub
parent 9713343323
commit a1286ad057
6 changed files with 28 additions and 52 deletions
+3 -1
View File
@@ -131,7 +131,9 @@ pub(super) async fn init_timer() {
}
pub(super) async fn init_hotkey() {
logging_error!(Type::Setup, Hotkey::global().init(false).await);
// if hotkey is not use by global, skip init it
let skip_register_hotkeys = !Config::verge().await.latest_arc().enable_global_hotkey.unwrap_or(true);
logging_error!(Type::Setup, Hotkey::global().init(skip_register_hotkeys).await);
}
pub(super) async fn init_auto_lightweight_boot() {