Skip to content

Commit 5b3faef

Browse files
committed
Remove redundant window move
1 parent e745251 commit 5b3faef

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src-tauri/src/main.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ fn handle_system_tray_event(app: &AppHandle, event: SystemTrayEvent) {
2121
if let SystemTrayEvent::LeftClick { position, .. } = event {
2222
let win_width = window.outer_size().expect("size").width;
2323

24-
window
25-
.set_position(PhysicalPosition {
26-
x: position.x - win_width as f64 / 2.0,
27-
y: position.y,
28-
})
29-
.expect("couldn't set position of widow");
30-
3124
if window.is_visible().unwrap() {
3225
window.hide().unwrap();
3326
} else {

0 commit comments

Comments
 (0)