Skip to content

Commit

Permalink
Add positioner to remember window state
Browse files Browse the repository at this point in the history
  • Loading branch information
Neved4 committed Aug 2, 2024
1 parent b1640f1 commit d010d3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit d010d3f

Please sign in to comment.