From 64c287781d398acd43ebf666acd33bb17f4ba018 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Mon, 24 Jul 2023 18:23:48 +0800 Subject: Found bug that was causing sorting to fail --- contents/ui/main.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'contents/ui/main.qml') 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 } -- cgit v1.2.3