tiling: Cleanup group indicators on drop
This commit is contained in:
parent
3a5bffdb5c
commit
e7026e0a7e
1 changed files with 6 additions and 7 deletions
|
|
@ -1785,13 +1785,12 @@ impl TilingLayout {
|
|||
.collect::<Vec<_>>()
|
||||
.into_iter()
|
||||
{
|
||||
let matches = matches!(
|
||||
tree.get(&id).map(|node| node.data()),
|
||||
Ok(Data::Placeholder { .. })
|
||||
);
|
||||
|
||||
if matches {
|
||||
TilingLayout::unmap_internal(&mut tree, &id);
|
||||
match tree.get_mut(&id).map(|node| node.data_mut()) {
|
||||
Ok(Data::Placeholder { .. }) => TilingLayout::unmap_internal(&mut tree, &id),
|
||||
Ok(Data::Group { pill_indicator, .. }) if pill_indicator.is_some() => {
|
||||
pill_indicator.take();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue