Rework close_inactive_items to await all tasks
Update action name to be more accurate
This commit is contained in:
parent
1610e270d6
commit
a0fc515cfc
3 changed files with 32 additions and 16 deletions
|
@ -746,6 +746,10 @@ impl Pane {
|
|||
_: &CloseAllItems,
|
||||
cx: &mut ViewContext<Self>,
|
||||
) -> Option<Task<Result<()>>> {
|
||||
if self.items.is_empty() {
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(self.close_items(cx, move |_| true))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue