Add "Close Window" global action which does not need a focused workspace

This commit is contained in:
Julia 2023-01-25 18:51:25 -05:00
parent 2df2d09e3c
commit 3819a67185
2 changed files with 13 additions and 1 deletions

View file

@ -875,7 +875,7 @@ impl MutableAppContext {
}
pub fn window_ids(&self) -> impl Iterator<Item = usize> + '_ {
self.cx.windows.keys().cloned()
self.cx.windows.keys().copied()
}
pub fn activate_window(&self, window_id: usize) {