fix(windows): show window when desktop icon is double-clicked while app runs in tray
Closes #353
This commit is contained in:
1 parent
5003ef52e2
commit
f3a248073a
1 file changed
+1
-4
@@ -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())
|
||||||
|
|||||||
Reference in new issue
Block a user