summaryrefslogtreecommitdiff
path: root/contents/ui/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'contents/ui/main.qml')
-rw-r--r--contents/ui/main.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/contents/ui/main.qml b/contents/ui/main.qml
index 5593b8c..f42ed15 100644
--- a/contents/ui/main.qml
+++ b/contents/ui/main.qml
@@ -46,6 +46,8 @@ Item {
line => { return line.split(" ", 2) }
)
+ const showSubmittedAssignments = plasmoid.configuration.showSubmittedAssignments
+
announcementsModel.clear()
assignmentsModel.clear()
@@ -84,10 +86,12 @@ Item {
important: plasmoid.configuration.importantAssignments.includes(assignment.id.toString()),
}
- if (info.important) {
- assignmentsModel.insert(importantCount.assignments++, info)
- } else {
- assignmentsModel.append(info)
+ if (!info.submitted || showSubmittedAssignments) {
+ if (info.important) {
+ assignmentsModel.insert(importantCount.assignments++, info)
+ } else {
+ assignmentsModel.append(info)
+ }
}
})
})