We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 799125f + 6946288 commit 8c6063dCopy full SHA for 8c6063d
src/modules/temperature.cpp
@@ -34,6 +34,14 @@ auto waybar::modules::Temperature::update() -> void {
34
} else {
35
label_.get_style_context()->remove_class("critical");
36
}
37
+
38
+ if(format.empty()) {
39
+ event_box_.hide();
40
+ return;
41
+ } else {
42
+ event_box_.show();
43
+ }
44
45
auto max_temp = config_["critical-threshold"].isInt() ? config_["critical-threshold"].asInt() : 0;
46
label_.set_markup(fmt::format(format,
47
fmt::arg("temperatureC", temperature_c),
0 commit comments