mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
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