feat(states): add getState to other percent based modules

This commit is contained in:
Dan
2019-05-02 22:19:47 -04:00
parent 3bac96945c
commit 5f0a3063d1
5 changed files with 5 additions and 0 deletions

View File

@ -181,6 +181,7 @@ auto waybar::modules::Backlight::update() -> void {
const auto percent = best->get_max() == 0 ? 100 : best->get_actual() * 100 / best->get_max();
label_.set_markup(fmt::format(
format_, fmt::arg("percent", std::to_string(percent)), fmt::arg("icon", getIcon(percent))));
getState(percent);
} else {
if (!previous_best_.has_value()) {
return;