fix: update method call to fetch configuration data for global hotkey settings

This commit is contained in:
Tunglies 2025-11-09 16:02:21 +08:00
parent d193460649
commit 6026f432da
No known key found for this signature in database
GPG Key ID: B9B01B389469B3E8

View File

@ -322,7 +322,7 @@ pub fn run() {
AsyncHandler::spawn(move || async move { AsyncHandler::spawn(move || async move {
let is_enable_global_hotkey = Config::verge() let is_enable_global_hotkey = Config::verge()
.await .await
.latest_arc() .data_arc()
.enable_global_hotkey .enable_global_hotkey
.unwrap_or(true); .unwrap_or(true);
@ -362,7 +362,7 @@ pub fn run() {
let _ = hotkey::Hotkey::global().unregister_system_hotkey(SystemHotkey::CmdW); let _ = hotkey::Hotkey::global().unregister_system_hotkey(SystemHotkey::CmdW);
let is_enable_global_hotkey = Config::verge() let is_enable_global_hotkey = Config::verge()
.await .await
.latest_arc() .data_arc()
.enable_global_hotkey .enable_global_hotkey
.unwrap_or(true); .unwrap_or(true);
if !is_enable_global_hotkey { if !is_enable_global_hotkey {