#Window State: The state is persisted but all windows open on app startup.

2 messages · Page 1 of 1 (latest)

winter plaza
#

I have a Windows app with a tray menu icon, so on startup there is no window shown. After I installed the Windows State plugin, all windows get shown after the app starts. How to prevent that?

proven pawn
#

i assume the windows exist but are hidden? In this case you probably want to save all windows states except the visibility state via ```rs
.plugin(tauri_plugin_window_state::Builder::new()
.with_state_flags(StateFlags::SIZE
| StateFlags::POSITION
| StateFlags::MAXIMIZED
| StateFlags::DECORATIONS
| StateFlags::FULLSCREEN,)
.build())