refactor(network): wait for new address

This commit is contained in:
Alexis
2018-11-23 16:04:29 +01:00
parent 2b05b8e69a
commit baa7f52e21
3 changed files with 16 additions and 7 deletions

View File

@ -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;