mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 05:03:45 +08:00
fix: app crash without a default global_hotkey vaule
This commit is contained in:
parent
e5c1de3ad3
commit
ef52f81494
@ -84,7 +84,7 @@ impl Hotkey {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if let Some(window) = app_handle.get_webview_window("main") {
|
if let Some(window) = app_handle.get_webview_window("main") {
|
||||||
let is_enable_global_hotkey = { Config::verge().latest().enable_global_hotkey} .unwrap();
|
let is_enable_global_hotkey = Config::verge().latest().enable_global_hotkey.unwrap_or(true);
|
||||||
let is_visible = window.is_visible().unwrap_or(false);
|
let is_visible = window.is_visible().unwrap_or(false);
|
||||||
let is_focused = window.is_focused().unwrap_or(false);
|
let is_focused = window.is_focused().unwrap_or(false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user