Skip to main content

snapshot_and_persist_bubble_position

Function snapshot_and_persist_bubble_position 

Source
fn snapshot_and_persist_bubble_position(
    app: &AppHandle,
    state: &BubbleState,
    window: &WebviewWindow,
)
Expand description

Read the window’s current outer position, store it in the in-memory state, and persist to disk. Called on Hide so a subsequent show (this session OR a later launch) restores the user’s chosen position.