mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
chore: dont show extra info in InfoRow when the value is unknown
This commit is contained in:
@@ -84,6 +84,17 @@ mod imp {
|
||||
.transform_to(|_, text: String| Some(!text.is_empty()))
|
||||
.sync_create()
|
||||
.build();
|
||||
|
||||
obj.bind_property("value", &self.info_menubutton.get(), "visible")
|
||||
.transform_to(|_, text: String| {
|
||||
if text.starts_with("Unknown ") {
|
||||
Some(false)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
.sync_create()
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user