diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ee23ea4..8cd9d1d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -18,6 +18,7 @@ tauri-build = { version = "1.5.3", features = [] } serde_json = "1.0.109" serde = { version = "1.0.193", features = ["derive"] } tauri = { version = "1.6.8", features = ["api-all", "devtools", "updater"] } +tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } [features] # by default Tauri runs in production mode diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 56a1ab7..ed97e9a 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -13,6 +13,7 @@ fn main() { let builder = builder.menu(menu::menu()); builder + .plugin(tauri_plugin_window_state::Builder::default().build()) .run(tauri::generate_context!()) .expect("error while building tauri application") }