mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45: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();
|
||||
|
||||
// Update tab title
|
||||
let title = match item.page_meta_title() {
|
||||
Some(value) => value,
|
||||
None => GString::new(),
|
||||
if let Some(title) = item.page_meta_title() {
|
||||
item.gobject().set_title(title.as_str())
|
||||
};
|
||||
|
||||
item.gobject().set_title(title.as_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue