Fix Tauri window focus method by using set_focus instead of focus

This commit is contained in:
Michael committed 2026-05-26 20:17:06 +02:00
1 parent df5e562ea6
commit f400b2413d
1 file changed
+2 -2
+2 -2
View File
@@ -89,7 +89,7 @@ fn main() {
window.hide().unwrap(); window.hide().unwrap();
} else { } else {
window.show().unwrap(); window.show().unwrap();
window.focus().unwrap(); window.set_focus().unwrap();
} }
} }
SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() { SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() {
@@ -102,7 +102,7 @@ fn main() {
window.hide().unwrap(); window.hide().unwrap();
} else { } else {
window.show().unwrap(); window.show().unwrap();
window.focus().unwrap(); window.set_focus().unwrap();
} }
} }
_ => {} _ => {}