mirror of
https://github.com/R0m1k3/TodoFlow.git
synced 2026-10-11 17:28:17 +02:00
Fix Tauri window focus method by using set_focus instead of focus
This commit is contained in:
1 parent
df5e562ea6
commit
f400b2413d
1 file changed
+2
-2
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|||||||
Reference in new issue
Block a user