Include MAXIMIZED state flag in window state handling (#4566)

This commit is contained in:
Drew Chase
2025-10-19 21:00:11 -04:00
committed by GitHub
parent 0e17427a58
commit 4a9f0b8a0e

View File

@@ -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(),
)