mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
update tab title on new value exist only
This commit is contained in:
parent
1fd610da9d
commit
575ef01802
1 changed files with 2 additions and 5 deletions
|
|
@ -159,12 +159,9 @@ impl Tab {
|
||||||
item.update();
|
item.update();
|
||||||
|
|
||||||
// Update tab title
|
// Update tab title
|
||||||
let title = match item.page_meta_title() {
|
if let Some(title) = item.page_meta_title() {
|
||||||
Some(value) => value,
|
item.gobject().set_title(title.as_str())
|
||||||
None => GString::new(),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
item.gobject().set_title(title.as_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue