Skip to main content

restore_all

Function restore_all 

Source
pub(crate) async fn restore_all(
    state: &AppState,
    record: &Value,
) -> Result<Option<(String, Vec<Event>)>, String>
Expand description

Restore every window in record: the first that comes back is the one being created (returned, as restore_last_session always did); each other one gets a workspace of its own, published and left for handle_take_restored_windows. A workspace record’s closed windows ("state": "closed") stay closed (session_closed::restore_closed), once a window came back.