mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-09 20:21:06 +00:00
fix title visibility toggle
This commit is contained in:
parent
ac34802f0d
commit
9f7016d736
@ -16,9 +16,11 @@ impl Widget {
|
||||
.visible(false)
|
||||
.build();
|
||||
|
||||
match title {
|
||||
Some(value) => gobject.set_label(value),
|
||||
None => gobject.set_visible(false),
|
||||
if let Some(label) = title {
|
||||
if !label.is_empty() {
|
||||
gobject.set_label(label);
|
||||
gobject.set_visible(true)
|
||||
}
|
||||
}
|
||||
|
||||
Arc::new(Self { gobject })
|
||||
|
Loading…
x
Reference in New Issue
Block a user