mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update label text on page reload
This commit is contained in:
parent
10374b1b08
commit
9e5ec86222
3 changed files with 13 additions and 8 deletions
|
|
@ -136,14 +136,14 @@ impl Tab {
|
|||
// Get widget ID
|
||||
let id = &widget.widget_name();
|
||||
|
||||
// Get label by widget ID
|
||||
if let Some(label) = self.labels.borrow().get(id) {
|
||||
label.update();
|
||||
}
|
||||
|
||||
// Get page by widget ID
|
||||
if let Some(page) = self.pages.borrow().get(id) {
|
||||
page.update();
|
||||
|
||||
// Get label by widget ID
|
||||
if let Some(label) = self.labels.borrow().get(id) {
|
||||
label.update(&page.title());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue