mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 19:56:50 +08:00
chore: update
This commit is contained in:
parent
bfded924d7
commit
0a9182519d
|
@ -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"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user