Skip to content

Commit

Permalink
fix(battery): Remove duplicate line
Browse files Browse the repository at this point in the history
This is what happens when you copy-paste from GitHub actions
  • Loading branch information
kiriDevs authored Apr 24, 2024
1 parent 54a85ea commit 8d96243
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/modules/battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,10 @@ auto waybar::modules::Battery::update() -> void {
} else {
event_box_.show();
auto icons = std::vector<std::string>{status + "-" + state, status, state};
label_.set_markup(
label_.set_markup(fmt::format(
fmt::runtime(format), fmt::arg("capacity", capacity), fmt::arg("power", power),
fmt::arg("icon", getIcon(capacity, icons)), fmt::arg("time", time_remaining_formatted),
fmt::arg("cycles", cycles), fmt::arg("health", fmt::format("{:.3}", health))));
label_.set_markup(fmt::format(
fmt::runtime(format), fmt::arg("capacity", capacity), fmt::arg("power", power),
fmt::arg("icon", getIcon(capacity, icons)), fmt::arg("time", time_remaining_formatted),
fmt::arg("cycles", cycles), fmt::arg("health", fmt::format("{:.3}", health))));
}
// Call parent update
ALabel::update();
Expand Down

0 comments on commit 8d96243

Please sign in to comment.