diff options
author | Frederick Yin <fkfd@fkfd.me> | 2023-07-24 18:23:48 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2023-07-24 18:23:48 +0800 |
commit | 64c287781d398acd43ebf666acd33bb17f4ba018 (patch) | |
tree | 5d94ceef8b57ef88bf49857ff6ec45eb59fc771b /contents/ui | |
parent | 3a3ab63895eb889a36d36e50d0f3f7f98e43ee23 (diff) |
Found bug that was causing sorting to fail
Diffstat (limited to 'contents/ui')
-rw-r--r-- | contents/ui/main.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contents/ui/main.qml b/contents/ui/main.qml index ad62fd1..f3af512 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -78,13 +78,11 @@ Item { normal: 0, finished: 0, } - let announcementLock = false let assignmentIndices = { important: 0, normal: 0, finished: 0, } - let assignmentLock = false for (let course of courses) { const courseIdx = courseIndices[course.id] @@ -114,7 +112,7 @@ Item { endIdx = announcementIndices.finished announcementIndices.finished++ } else { - idx = announcementIndices.normal + idx = announcementIndices.finished endIdx = announcementsModel.count } @@ -162,7 +160,7 @@ Item { endIdx = assignmentIndices.finished assignmentIndices.finished++ } else { - idx = assignmentIndices.normal + idx = assignmentIndices.finished endIdx = assignmentsModel.count } |