Skip to content

Commit f3359fd

Browse files
committed
Use forked window state plugin
Fix #152
1 parent 6670a8f commit f3359fd

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

apps/desktop/src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/desktop/src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tokio = { version = "1.38.0", features = [
4444
"full",
4545
] } # Required for asynchronous operations
4646
tauri-plugin-websocket = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
47-
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
47+
tauri-plugin-window-state = { git = "https://github.com/Hacksore/plugins-workspace", branch = "v1" }
4848
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
4949
anyhow = "1.0.86"
5050

apps/desktop/src-tauri/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,10 @@ fn apply_macos_specifics(window: &Window) {
3737
}
3838

3939
fn main() {
40-
let mut flags = StateFlags::all();
41-
// NOTE: we don't care about the visible flag
42-
flags.remove(StateFlags::VISIBLE);
43-
40+
let flags = StateFlags::POSITION | StateFlags::SIZE;
4441
let window_state_plugin = tauri_plugin_window_state::Builder::default().with_state_flags(flags);
4542

4643
let mut app = tauri::Builder::default()
47-
// TODO: this should work on windows
4844
.plugin(window_state_plugin.build())
4945
.plugin(tauri_plugin_websocket::init())
5046
.plugin(tauri_plugin_single_instance::init(|app, argv, cwd| {

0 commit comments

Comments
 (0)