Update window edited status when pane item is removed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user