mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 10:24:13 +00:00
use common getter
This commit is contained in:
parent
8c26675059
commit
d121c3ca79
@ -42,8 +42,9 @@ impl Tab {
|
||||
// Begin async action
|
||||
move |_, widget: &Widget, _| {
|
||||
// Cleanup HashMap index
|
||||
tab.labels.borrow_mut().remove(&widget.widget_name());
|
||||
tab.pages.borrow_mut().remove(&widget.widget_name());
|
||||
let id = &widget.widget_name();
|
||||
tab.labels.borrow_mut().remove(id);
|
||||
tab.pages.borrow_mut().remove(id);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user