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