fix: the shortcut key to exit cannot be used

This commit is contained in:
huzibaca
2024-09-18 01:41:46 +08:00
parent 25f15e12cf
commit 49929bd473
4 changed files with 29 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ pub fn app_home_dir() -> Result<PathBuf> {
}
let handle = handle::Handle::global();
let app_handle = handle.app_handle.lock();
let app_handle = handle.app_handle.lock().clone();
if let Some(app_handle) = app_handle.as_ref() {
match app_handle.path().data_dir() {