fix(custom): hide first

This commit is contained in:
Alexis 2018-08-16 17:59:45 +02:00
parent 93f87f322f
commit 0371271465

View File

@ -41,8 +41,8 @@ auto waybar::modules::Custom::update() -> void
// Hide label if output is empty // Hide label if output is empty
if (output.empty()) { if (output.empty()) {
label_.set_name("");
label_.hide(); label_.hide();
label_.set_name("");
} else { } else {
label_.set_name("custom-" + name_); label_.set_name("custom-" + name_);
auto format = config_["format"] ? config_["format"].asString() : "{}"; auto format = config_["format"] ? config_["format"].asString() : "{}";