Skip to content

Commit

Permalink
Change tray window position position
Browse files Browse the repository at this point in the history
Change tray window position from center to fixed center on left click event
  • Loading branch information
cauyxy authored Mar 28, 2023
1 parent e99ba83 commit ac60dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/app/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ac60dbd

Please sign in to comment.