feat(Battery) Format argument for time to full|empty

This commit is contained in:
Max Reppen 2019-05-21 13:44:05 -04:00
parent 00ada46dfc
commit cf3cb4c61f
1 changed files with 1 additions and 1 deletions

View File

@ -181,6 +181,6 @@ auto waybar::modules::Battery::update() -> void {
} else {
event_box_.show();
label_.set_markup(fmt::format(
format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity, state))));
format, fmt::arg("capacity", capacity), fmt::arg("icon", getIcon(capacity, state)), fmt::arg("time", formatTimeRemaining(time_remaining))));
}
}