Skip to content

Commit 73084c6

Browse files
committed
feat: persist window size and position between sessions
Add tauri-plugin-window-state to remember window geometry.
1 parent f3eca45 commit 73084c6

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

src-tauri/Cargo.lock

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.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ rand = "0.8"
5858

5959
# Secure credential storage
6060
keyring = { version = "3", features = ["apple-native", "windows-native", "sync-secret-service"] }
61+
tauri-plugin-window-state = "2"
6162

6263
# Windows-specific enhanced notifications
6364
[target.'cfg(windows)'.dependencies]

src-tauri/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub fn run() {
124124
tauri_plugin_autostart::MacosLauncher::LaunchAgent,
125125
Some(vec!["--minimized"]),
126126
))
127+
.plugin(tauri_plugin_window_state::Builder::new().build())
127128
.plugin(tauri_plugin_updater::Builder::new().build())
128129
.setup(|app| {
129130
// Initialize database

0 commit comments

Comments
 (0)