Skip to content

Commit

Permalink
ui: hide message label when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rtgiskard committed Jun 7, 2024
1 parent 2c4e7ff commit ddd73c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ impl AsyncComponent for Greeter {
message_label {
#[track(model.updates.changed(Updates::message()))]
set_label: &model.updates.message,
set_visible: !model.updates.message.is_empty(),
},
#[template_child]
session_label {
Expand Down

0 comments on commit ddd73c5

Please sign in to comment.