Persistent window state

This commit is contained in:
2026-02-17 16:01:55 -07:00
parent e16fce9ce5
commit e7583d3f9e
2 changed files with 2 additions and 0 deletions

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"

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")