Skip to content

Commit ac60dbd

Browse files
authored
Change tray window position position
Change tray window position from center to fixed center on left click event
1 parent e99ba83 commit ac60dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-tauri/src/app/menu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ pub fn tray_handler(handle: &AppHandle, event: SystemTrayEvent) {
464464
}
465465

466466
if let Some(tray_win) = handle.get_window("tray") {
467-
tray_win.move_window(Position::TrayCenter).unwrap();
467+
tray_win.move_window(Position::TrayFixedCenter).unwrap();
468468

469469
if tray_win.is_visible().unwrap() {
470470
tray_win.hide().unwrap();

0 commit comments

Comments
 (0)