mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
update tab title on new value exist only
This commit is contained in:
parent
1fd610da9d
commit
575ef01802
@ -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…
x
Reference in New Issue
Block a user