Formatting
parent
8a360957f4
commit
c41c86da13
|
@ -132,7 +132,6 @@ auto waybar::modules::CustomList::update() -> void {
|
||||||
}
|
}
|
||||||
bool needReorder = false;
|
bool needReorder = false;
|
||||||
for(auto res = results_.begin(); res != results_.end(); res++) {
|
for(auto res = results_.begin(); res != results_.end(); res++) {
|
||||||
|
|
||||||
std::string name = (*res)["name"].asString();
|
std::string name = (*res)["name"].asString();
|
||||||
auto bit = buttons_.find(name);
|
auto bit = buttons_.find(name);
|
||||||
if(bit == buttons_.end()) {
|
if(bit == buttons_.end()) {
|
||||||
|
@ -195,7 +194,7 @@ auto waybar::modules::CustomList::update() -> void {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
for(auto prev : prev_) {
|
void name()or(auto prev : prev_) {
|
||||||
auto res_it = std::find_if(results_.begin(), results_.end(), [prev](auto it) {
|
auto res_it = std::find_if(results_.begin(), results_.end(), [prev](auto it) {
|
||||||
return it["name"] == prev["name"];
|
return it["name"] == prev["name"];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue