Skip to main content

handle_take_closed_window

Function handle_take_closed_window 

Source
pub(crate) async fn handle_take_closed_window(
    state: &AppState,
    call: &WebCallType,
) -> WebReturnType
Expand description

window.TakeClosedWindow(workspaceId): reopen a closed window. Waits for its close to finish, puts its parked agents back in their tabs and returns where it was ({workspaceid, x, y, width, height}) for the host to open it there; its name and appearance wait for that window (CreateWindow). It stays listed until that window registers, so a window that fails to open can be reopened again and is still saved (#5359). Errors when it isn’t a closed window any more.