fix: something

This commit is contained in:
GyDi committed 2022-01-31 23:34:58 +08:00
1 parent b028b09041
commit ab078d1ea0
2 files changed
+7 -4

No files matched your search

+6 -4
View File
@@ -60,10 +60,12 @@ fn main() -> std::io::Result<()> {
_ => {}
},
SystemTrayEvent::LeftClick { .. } => {
let window = app_handle.get_window("main").unwrap();
window.unminimize().unwrap();
window.show().unwrap();
window.set_focus().unwrap();
if cfg![target_os = "windows"] {
let window = app_handle.get_window("main").unwrap();
window.unminimize().unwrap();
window.show().unwrap();
window.set_focus().unwrap();
}
}
_ => {}
})