refactor(custon): hide on empty text

This commit is contained in:
Alex
2019-05-27 00:05:21 +02:00
parent 5fdb122829
commit be2fa743eb
2 changed files with 6 additions and 3 deletions

View File

@ -123,8 +123,11 @@ auto waybar::modules::Custom::update() -> void {
for (auto const& c : class_) {
label_.get_style_context()->add_class(c);
}
event_box_.show();
if (text_.empty()) {
event_box_.hide();
} else {
event_box_.show();
}
}
}