terminal: Persist pinned tabs in terminal (#31921)

Closes #31098

Release Notes:

- Fixed terminal pinned tab state not persisting across restarts.
This commit is contained in:
Piotr Osiewicz 2025-06-02 22:36:57 +02:00 committed by GitHub
parent 3f90bc81bd
commit f1aab1120d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 4 deletions

View file

@ -325,7 +325,6 @@ impl TerminalPanel {
.ok();
}
}
Ok(terminal_panel)
}
@ -393,6 +392,9 @@ impl TerminalPanel {
pane::Event::Focus => {
self.active_pane = pane.clone();
}
pane::Event::ItemPinned | pane::Event::ItemUnpinned => {
self.serialize(cx);
}
_ => {}
}