Function zng_wgt_window::save_state

source ยท
pub fn save_state(
    child: impl UiNode,
    enabled: impl IntoValue<SaveState>
) -> impl UiNode
Expand description

P Save and restore the window state.

If enabled a config entry is created for the window state in CONFIG, and if a config backend is set the window state is persisted on change and restored when the app reopens.

It is recommended to open the window with an unique name if the app can open more than one window, otherwise the state will be associated with the sequential ID of the window.

This property is enabled by default in the Window! widget.