chore: update

This commit is contained in:
huzibaca 2024-09-22 22:15:36 +08:00
parent bfded924d7
commit 0a9182519d
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302
2 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@ impl Handle {
pub fn get_window(&self) -> Option<WebviewWindow> { pub fn get_window(&self) -> Option<WebviewWindow> {
self.app_handle self.app_handle
.lock() .lock()
.clone()
.as_ref() .as_ref()
.and_then(|a| a.get_webview_window("main")) .and_then(|a| a.get_webview_window("main"))
} }

View File

@ -63,7 +63,6 @@ impl Tray {
let _ = tray.set_visible(true); let _ = tray.set_visible(true);
} }
}); });
println!("{:?}", tray.id());
tray.on_menu_event(on_menu_event); tray.on_menu_event(on_menu_event);
Ok(()) Ok(())
} }