fix(windows): show window when desktop icon is double-clicked while app runs in tray

Closes #353
This commit is contained in:
t8y2 committed 2026-05-20 12:13:26 +08:00
1 parent 5003ef52e2
commit f3a248073a
1 file changed
+1 -4
+1 -4
View File
@@ -84,11 +84,8 @@ pub fn run() {
state.push(paths.clone()); state.push(paths.clone());
} }
let _ = app.emit("dbx-open-sql-files", paths); let _ = app.emit("dbx-open-sql-files", paths);
if let Some(window) = app.get_webview_window("main") {
let _ = window.show();
let _ = window.set_focus();
}
} }
show_main_window(app);
})) }))
.plugin(tauri_plugin_shell::init()) .plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_updater::Builder::new().build()) .plugin(tauri_plugin_updater::Builder::new().build())