From d010d3f54791c1203b5481825333091f0b2050e0 Mon Sep 17 00:00:00 2001 From: Neveda <63655535+Neved4@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:42:56 +0200 Subject: [PATCH] Add `positioner` to remember window state --- src-tauri/Cargo.toml | 3 ++- src-tauri/src/main.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ee23ea4..97617f9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -17,7 +17,8 @@ tauri-build = { version = "1.5.3", features = [] } [dependencies] serde_json = "1.0.109" serde = { version = "1.0.193", features = ["derive"] } -tauri = { version = "1.6.8", features = ["api-all", "devtools", "updater"] } +tauri = { version = "1.7.1", 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") }