Skip to content

Commit

Permalink
feat(Battery): get icon by state
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed May 16, 2019
1 parent 8901df9 commit 4b4b74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/battery.cpp
Expand Up @@ -147,7 +147,7 @@ auto waybar::modules::Battery::update() -> void {
event_box_.hide();
} else {
event_box_.show();
label_.set_markup(
fmt::format(format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity))));
label_.set_markup(fmt::format(
format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity, state))));
}
}

0 comments on commit 4b4b74d

Please sign in to comment.