From 845e2470030765245144c4023b90b110f5a28e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=91=86=20Neveda=20=E2=91=88?= <63655535+Neved4@users.noreply.github.com> Date: Tue, 11 Feb 2025 03:56:37 +0100 Subject: [PATCH] Add ability to restore Cinny's window size and position (#327) --- 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 b469e2c..00404b9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -19,6 +19,7 @@ serde_json = "1.0.109" serde = { version = "1.0.193", features = ["derive"] } tauri = { version = "1.8.0", features = ["api-all", "devtools", "updater"] } tauri-plugin-localhost = "0.1.0" +tauri-plugin-window-state = "0.1.1" [features] # by default Tauri runs in production mode diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index e079c39..4231f30 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -24,6 +24,7 @@ fn main() { builder .plugin(tauri_plugin_localhost::Builder::new(port).build()) + .plugin(tauri_plugin_window_state::Builder::default().build()) .run(context) .expect("error while building tauri application") }