Skip to main content

restore

Function restore 

Source
pub(crate) async fn restore(
    state: &AppState,
    roots: &ScanRoots,
    window_id: &str,
    channel: &str,
    version: &str,
) -> Result<RestoreOtherBuildLayoutResult, String>
Expand description

Rebuild the layout build channel/version saved into window window_id: its first window’s tabs into this window, replacing the default tab when it is untouched and otherwise beside what is open; its other windows each into a workspace of its own, queued for this window to open (window.TakeRestoredWindows).