We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e745251 commit 5b3faefCopy full SHA for 5b3faef
src-tauri/src/main.rs
@@ -21,13 +21,6 @@ fn handle_system_tray_event(app: &AppHandle, event: SystemTrayEvent) {
21
if let SystemTrayEvent::LeftClick { position, .. } = event {
22
let win_width = window.outer_size().expect("size").width;
23
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
-
31
if window.is_visible().unwrap() {
32
window.hide().unwrap();
33
} else {
0 commit comments