summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-07-24 15:42:10 +0800
committerFrederick Yin <fkfd@fkfd.me>2023-07-24 15:42:10 +0800
commit35ae25d99db6992ac25c7f160e522608e0ff9a7f (patch)
tree64db1d0be64e736a06df92ac10228aa507f2c83b
parentf1af2a3b81a308c19ed96b37cdc72e06b92ad24e (diff)
Add comments
-rw-r--r--contents/ui/main.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/contents/ui/main.qml b/contents/ui/main.qml
index a70cc74..0e4f04a 100644
--- a/contents/ui/main.qml
+++ b/contents/ui/main.qml
@@ -98,7 +98,7 @@ Item {
course: course.code,
title: assignment.name,
dueAt: assignment.due_at || "", // if null, use empty string to suppress errors
- submitted: submission.workflow_state != "unsubmitted",
+ submitted: submission.workflow_state != "unsubmitted", // "graded" counts as submitted
url: assignment.html_url,
important: plasmoid.configuration.importantAssignments.includes(assignment.id.toString()),
finished: plasmoid.configuration.finishedAssignments.includes(assignment.id.toString()),
@@ -117,8 +117,10 @@ Item {
}
}
+ // sync on initialization
Component.onCompleted: syncCanvas()
+ // update every refreshInterval minutes
Timer {
interval: plasmoid.configuration.refreshInterval * 60 * 1000
running: true
@@ -126,6 +128,7 @@ Item {
onTriggered: syncCanvas()
}
+ // top level layout
ColumnLayout {
id: main
anchors.fill: parent