fix state behavior

This commit is contained in:
unresolvedsymbol
2019-05-15 22:14:51 -05:00
parent 37f87be9dd
commit 7e8eee0571
3 changed files with 4 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ auto waybar::modules::Battery::update() -> void {
}
std::transform(status.begin(), status.end(), status.begin(), ::tolower);
auto format = format_;
auto state = getState(capacity, true);
auto state = getState(capacity, true, true);
if (!old_status_.empty()) {
label_.get_style_context()->remove_class(old_status_);
}