diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index c0610c3..b51ed49 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -95,7 +95,7 @@ const std::tuple waybar::modules::Battery::getIn } uint16_t capacity = total / batteries_.size(); if (status == "Charging" && total_current != 0) { - status == "Plugged"; + status = "Plugged"; } return {capacity, total_current, status}; } catch (const std::exception& e) {