Skip to content

Commit d4cc496

Browse files
authored
feat: save window state (#220)
1 parent 604bcae commit d4cc496

File tree

5 files changed

+45
-2
lines changed

5 files changed

+45
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"rehype-sanitize": "^6.0.0",
7878
"rxjs": "^7.8.1",
7979
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log",
80+
"tauri-plugin-window-state-api": "github:tauri-apps/tauri-plugin-window-state#v1",
8081
"use-breakpoint": "^4.0.1",
8182
"zod": "^3.22.4",
8283
"zustand": "^4.4.7"

pnpm-lock.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.lock

Lines changed: 26 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ webbrowser = "0.8"
4040
tauri = { version = "1.5", features = [ "dialog-all", "clipboard-all", "http-all", "window-all", "system-tray", "native-tls-vendored", "icon-png", "fs-all"] }
4141
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
4242
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
43+
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
4344
thiserror = "1.0"
4445
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
4546
tokio-util = "0.7"

src-tauri/src/bin/defguard-client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ async fn main() {
135135
})
136136
.build(),
137137
)
138+
.plugin(tauri_plugin_window_state::Builder::default().build())
138139
.manage(AppState::default())
139140
.build(tauri::generate_context!())
140141
.expect("error while running tauri application");

0 commit comments

Comments
 (0)