Merge pull request #3417 from yangyingchao/master

(temperature) fix clang-tidy lint .
This commit is contained in:
Alexis Rouillard 2024-07-06 09:40:02 +02:00 committed by GitHub
commit b26ab1f982
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -80,10 +80,10 @@ auto waybar::modules::Temperature::update() -> void {
if (format.empty()) {
event_box_.hide();
return;
} else {
event_box_.show();
}
event_box_.show();
auto max_temp = config_["critical-threshold"].isInt() ? config_["critical-threshold"].asInt() : 0;
label_.set_markup(fmt::format(fmt::runtime(format), fmt::arg("temperatureC", temperature_c),
fmt::arg("temperatureF", temperature_f),