tiling: Cleanup group indicators on drop

This commit is contained in:
Victoria Brekenfeld 2023-07-26 16:13:24 +02:00
parent 3a5bffdb5c
commit e7026e0a7e

View file

@ -1785,13 +1785,12 @@ impl TilingLayout {
.collect::<Vec<_>>() .collect::<Vec<_>>()
.into_iter() .into_iter()
{ {
let matches = matches!( match tree.get_mut(&id).map(|node| node.data_mut()) {
tree.get(&id).map(|node| node.data()), Ok(Data::Placeholder { .. }) => TilingLayout::unmap_internal(&mut tree, &id),
Ok(Data::Placeholder { .. }) Ok(Data::Group { pill_indicator, .. }) if pill_indicator.is_some() => {
); pill_indicator.take();
}
if matches { _ => {}
TilingLayout::unmap_internal(&mut tree, &id);
} }
} }
} }