Revert "Add style class for CPU state"

This commit is contained in:
Alexis Rouillard
2024-02-19 23:10:10 +01:00
committed by GitHub
parent 41b2d0cb29
commit 742cd7f371
3 changed files with 0 additions and 9 deletions

View File

@ -36,12 +36,6 @@ auto waybar::modules::Cpu::update() -> void {
format = config_["format-" + state].asString();
}
if (!prev_state_.empty()) {
label_.get_style_context()->remove_class(prev_state_);
}
label_.get_style_context()->add_class(state);
prev_state_ = state;
if (format.empty()) {
event_box_.hide();
} else {