Restore archived tabs from sidebar

This commit is contained in:
2026-05-07 20:06:18 -04:00
parent 75e17fc70f
commit 8fff64606d
5 changed files with 128 additions and 4 deletions
+14
View File
@@ -142,6 +142,20 @@ impl ElyShell {
}
}
fn restore_archived_tab(
&mut self,
tab_id: &TabId,
window: &mut Window,
cx: &mut Context<Self>,
) {
if let ShellState::Ready(core) = &mut self.state
&& core.restore_archived_tab(tab_id).is_ok()
{
self.sync_address_input(window, cx);
cx.notify();
}
}
fn toggle_active_tab_favorite(&mut self, cx: &mut Context<Self>) {
if let ShellState::Ready(core) = &mut self.state
&& core.toggle_active_tab_favorite().is_ok()