We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 985c2a3 commit 3aaa34bCopy full SHA for 3aaa34b
packages/desktop/src-tauri/src/windows.rs
@@ -22,6 +22,8 @@ impl MainWindow {
22
23
pub fn create(app: &AppHandle) -> Result<Self, tauri::Error> {
24
if let Some(window) = app.get_webview_window(Self::LABEL) {
25
+ let _ = window.set_focus();
26
+ let _ = window.unminimize();
27
return Ok(Self(window));
28
}
29
@@ -50,6 +52,9 @@ impl MainWindow {
50
52
51
53
let window = window_builder.build()?;
54
55
+ // Ensure window is focused after creation (e.g., after update/relaunch)
56
57
+
58
setup_window_state_listener(app, &window);
59
60
#[cfg(windows)]
0 commit comments