mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Fixed usedId assignment logic in edit_todo_list_box
This commit is contained in:
@@ -564,7 +564,7 @@ std::vector<TodoListItem> Tasks::toTodoListItems() const {
|
||||
auto usedId = 0;
|
||||
for (const auto &task : _list) {
|
||||
if (const auto id = task->id()) {
|
||||
usedId = id;
|
||||
usedId = id > usedId ? id : usedId;
|
||||
} else if (task->isGood()) {
|
||||
++usedId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user