layout: Use tiles_mut() in Workspace::clear_unmap_snapshot()

This commit is contained in:
Ivan Molodetskikh
2024-11-29 21:11:02 +03:00
parent 7fc2121454
commit 2020dca3e0
+1 -3
View File
@@ -1644,15 +1644,13 @@ impl<W: LayoutElement> Workspace<W> {
} }
pub fn clear_unmap_snapshot(&mut self, window: &W::Id) { pub fn clear_unmap_snapshot(&mut self, window: &W::Id) {
for col in &mut self.columns { for tile in self.tiles_mut() {
for tile in &mut col.tiles {
if tile.window().id() == window { if tile.window().id() == window {
let _ = tile.take_unmap_snapshot(); let _ = tile.take_unmap_snapshot();
return; return;
} }
} }
} }
}
pub fn start_close_animation_for_window( pub fn start_close_animation_for_window(
&mut self, &mut self,