From 4a9f0b8a0ef189c15b411815f28e845109120316 Mon Sep 17 00:00:00 2001 From: Drew Chase Date: Sun, 19 Oct 2025 21:00:11 -0400 Subject: [PATCH] Include MAXIMIZED state flag in window state handling (#4566) --- apps/app/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/app/src/main.rs b/apps/app/src/main.rs index 8b943071..731565dc 100644 --- a/apps/app/src/main.rs +++ b/apps/app/src/main.rs @@ -155,7 +155,8 @@ fn main() { // Use *only* POSITION and SIZE state flags, because saving VISIBLE causes the `visible: false` to not take effect .with_state_flags( tauri_plugin_window_state::StateFlags::POSITION - | tauri_plugin_window_state::StateFlags::SIZE, + | tauri_plugin_window_state::StateFlags::SIZE + | tauri_plugin_window_state::StateFlags::MAXIMIZED, ) .build(), )