mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-08 14:29:22 +08:00
fix duplicate profile on update
This commit is contained in:
parent
f1e96499c2
commit
a5910e6531
@ -686,7 +686,7 @@ namespace NekoGui_sub {
|
||||
group->order = {};
|
||||
for (const auto &ent: rawUpdater->updated_order) {
|
||||
auto deleted_index = update_del.indexOf(ent);
|
||||
if (deleted_index > 0) {
|
||||
if (deleted_index >= 0) {
|
||||
if (deleted_index >= update_keep.count()) continue; // should not happen
|
||||
auto ent2 = update_keep[deleted_index];
|
||||
group->order.append(ent2->id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user