Skip to content

Commit dd04ead

Browse files
Add start window hidden tip for window state (#3253)
1 parent fbfdb26 commit dd04ead

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/docs/plugin/window-state.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ After adding the window-state plugin, all windows will remember their state when
8787

8888
You can also access the window-state plugin in both JavaScript and Rust.
8989

90+
:::tip
91+
Restoring the state will happen after window creation,
92+
so to prevent the window from flashing, you can set `visible` to `false` when creating the window,
93+
the plugin will show the window when it restores the state
94+
:::
95+
9096
### JavaScript
9197

9298
You can use `saveWindowState` to manually save the window state:

0 commit comments

Comments
 (0)