Rework close_inactive_items to await all tasks

Update action name to be more accurate
This commit is contained in:
Mikayla Maki 2023-07-27 17:58:43 -07:00
parent 1610e270d6
commit a0fc515cfc
No known key found for this signature in database
3 changed files with 32 additions and 16 deletions

View file

@ -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))
}