Change tray window position position

Change tray window position from center to fixed center on left click event
This commit is contained in:
Xinyu Yang
2023-03-28 11:26:25 +08:00
committed by GitHub
parent e99ba830d8
commit ac60dbd5ee

View File

@@ -464,7 +464,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();