From 58ef1480d8e2b7c052f9f1928e0ea84fe773e515 Mon Sep 17 00:00:00 2001 From: Neveda <63655535+Neved4@users.noreply.github.com> Date: Sat, 3 Aug 2024 00:09:11 +0200 Subject: [PATCH 1/2] Add `window-state` to restore window position and size --- src-tauri/Cargo.toml | 1 + src-tauri/src/main.rs | 1 + 2 files changed, 2 insertions(+) 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") } From 59de25974d640652fe33dda56d271135af622f6a Mon Sep 17 00:00:00 2001 From: Neved4 <63655535+Neved4@users.noreply.github.com> Date: Thu, 12 Sep 2024 19:17:13 +0200 Subject: [PATCH 2/2] Use crates.io instead of git URL --- src-tauri/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 8cd9d1d..ef3296e 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -18,7 +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" } +tauri-plugin-window-state = "0.1.1" [features] # by default Tauri runs in production mode