mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
remove deprecated features
This commit is contained in:
parent
e9e5c5ad22
commit
5ab51db946
5 changed files with 6 additions and 132 deletions
|
|
@ -284,10 +284,7 @@ impl Tab {
|
|||
}
|
||||
|
||||
pub fn update(&self, item_id: Option<GString>) {
|
||||
let key = match item_id {
|
||||
Some(value) => value,
|
||||
None => GString::new(), // @TODO
|
||||
};
|
||||
let key = item_id.unwrap_or_default();
|
||||
|
||||
match self.index.borrow().get(&key) {
|
||||
Some(item) => {
|
||||
|
|
@ -296,7 +293,7 @@ impl Tab {
|
|||
|
||||
// Update tab title on loading indicator inactive
|
||||
if !item.page.is_loading() {
|
||||
item.widget.tab_page.set_title(&item.page.title())
|
||||
item.widget.tab_page.set_title(&item.page.title.borrow())
|
||||
}
|
||||
}
|
||||
// Update all tabs
|
||||
|
|
@ -307,7 +304,7 @@ impl Tab {
|
|||
|
||||
// Update tab title on loading indicator inactive
|
||||
if !item.page.is_loading() {
|
||||
item.widget.tab_page.set_title(&item.page.title())
|
||||
item.widget.tab_page.set_title(&item.page.title.borrow())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue