refactor: avoid useless has_class check
This commit is contained in:
@ -37,7 +37,7 @@ auto waybar::modules::Battery::update() -> void
|
||||
charging = true;
|
||||
}
|
||||
}
|
||||
if (charging == true) {
|
||||
if (charging) {
|
||||
_label.get_style_context()->add_class("charging");
|
||||
} else {
|
||||
_label.get_style_context()->remove_class("charging");
|
||||
|
Reference in New Issue
Block a user