mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
use common getter
This commit is contained in:
parent
8c26675059
commit
d121c3ca79
@ -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…
x
Reference in New Issue
Block a user