Merge branch 'main' into dev

This commit is contained in:
lencx 2023-04-12 21:18:28 +08:00
commit 60b7e3148a

View File

@ -458,7 +458,7 @@ pub fn tray_handler(handle: &AppHandle, event: SystemTrayEvent) {
}
if let Some(tray_win) = handle.get_window("tray") {
tray_win.move_window(Position::TrayCenter).unwrap();
tray_win.move_window(Position::TrayFixedCenter).unwrap();
if tray_win.is_visible().unwrap() {
tray_win.hide().unwrap();