Fix clang-format

This commit is contained in:
Alex
2026-07-03 23:51:10 +02:00
parent d5f5a5b4df
commit 2ac1f1c437
+1 -2
View File
@@ -322,8 +322,7 @@ auto waybar::modules::Network::update() -> void {
if (!state_.empty() && label_.get_style_context()->has_class(state_)) { if (!state_.empty() && label_.get_style_context()->has_class(state_)) {
label_.get_style_context()->remove_class(state_); label_.get_style_context()->remove_class(state_);
} }
if (!threshold_state.empty() && if (!threshold_state.empty() && config_["format-" + state + "-" + threshold_state].isString()) {
config_["format-" + state + "-" + threshold_state].isString()) {
default_format_ = config_["format-" + state + "-" + threshold_state].asString(); default_format_ = config_["format-" + state + "-" + threshold_state].asString();
} else if (config_["format-" + state].isString()) { } else if (config_["format-" + state].isString()) {
default_format_ = config_["format-" + state].asString(); default_format_ = config_["format-" + state].asString();