Persistent window state

This commit is contained in:
Lncvrt committed 2026-02-17 16:01:55 -07:00
1 parent e16fce9ce5
commit e7583d3f9e
2 files changed
+2

No files matched your search

+1
View File
@@ -26,4 +26,5 @@ sha2 = "0.10.9"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-single-instance = "2.4.0"
tauri-plugin-window-state = "2.4.1"
+1
View File
@@ -175,6 +175,7 @@ pub fn run() {
Ok(())
})
.plugin(tauri_plugin_window_state::Builder::new().build())
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {
let _ = app
.get_webview_window("main")