mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(network): wait for new address
This commit is contained in:
@ -101,7 +101,7 @@ const std::string waybar::modules::Battery::getState(uint8_t capacity) const
|
||||
return a.second < b.second;
|
||||
});
|
||||
std::string valid_state;
|
||||
for (auto state : states) {
|
||||
for (auto const& state : states) {
|
||||
if (capacity <= state.second && valid_state.empty()) {
|
||||
label_.get_style_context()->add_class(state.first);
|
||||
valid_state = state.first;
|
||||
|
Reference in New Issue
Block a user