mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use common getter
This commit is contained in:
parent
8c26675059
commit
d121c3ca79
1 changed files with 3 additions and 2 deletions
|
|
@ -42,8 +42,9 @@ impl Tab {
|
||||||
// Begin async action
|
// Begin async action
|
||||||
move |_, widget: &Widget, _| {
|
move |_, widget: &Widget, _| {
|
||||||
// Cleanup HashMap index
|
// Cleanup HashMap index
|
||||||
tab.labels.borrow_mut().remove(&widget.widget_name());
|
let id = &widget.widget_name();
|
||||||
tab.pages.borrow_mut().remove(&widget.widget_name());
|
tab.labels.borrow_mut().remove(id);
|
||||||
|
tab.pages.borrow_mut().remove(id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue