Skip to main content

restore_bubble_position

Function restore_bubble_position 

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

Look up the bubble window’s last-known position (in-memory first; then disk; then default_position on the primary monitor) and apply it via set_position BEFORE show() so the window doesn’t flicker through a stale OS-default location.