pane: Fix pinned tabs being persisted after closing (#17666)
Release Notes: - Fixed tabs staying pinned after closing unrelated tabs
This commit is contained in:
parent
48a16f9e70
commit
3cea7ccbff
1 changed files with 3 additions and 0 deletions
|
@ -1364,6 +1364,9 @@ impl Pane {
|
||||||
self.activation_history
|
self.activation_history
|
||||||
.retain(|entry| entry.entity_id != self.items[item_index].item_id());
|
.retain(|entry| entry.entity_id != self.items[item_index].item_id());
|
||||||
|
|
||||||
|
if self.is_tab_pinned(item_index) {
|
||||||
|
self.pinned_tab_count -= 1;
|
||||||
|
}
|
||||||
if item_index == self.active_item_index {
|
if item_index == self.active_item_index {
|
||||||
let index_to_activate = self
|
let index_to_activate = self
|
||||||
.activation_history
|
.activation_history
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue