mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-14 15:12:31 +02:00
Revert "Add style class for CPU state"
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user