Update window edited status when pane item is removed
This commit is contained in:
parent
2dae0ddcdb
commit
a21dbdd0d6
4 changed files with 11 additions and 3 deletions
|
@ -110,6 +110,7 @@ pub enum Event {
|
|||
Activate,
|
||||
ActivateItem { local: bool },
|
||||
Remove,
|
||||
RemoveItem,
|
||||
Split(SplitDirection),
|
||||
ChangeItemTitle,
|
||||
}
|
||||
|
@ -575,6 +576,7 @@ impl Pane {
|
|||
}
|
||||
|
||||
let item = pane.items.remove(item_ix);
|
||||
cx.emit(Event::RemoveItem);
|
||||
if pane.items.is_empty() {
|
||||
item.deactivated(cx);
|
||||
pane.update_toolbar(cx);
|
||||
|
|
|
@ -1482,6 +1482,9 @@ impl Workspace {
|
|||
}
|
||||
self.update_window_edited(cx);
|
||||
}
|
||||
pane::Event::RemoveItem => {
|
||||
self.update_window_edited(cx);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
error!("pane {} not found", pane_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue