From 35ae25d99db6992ac25c7f160e522608e0ff9a7f Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Mon, 24 Jul 2023 15:42:10 +0800 Subject: Add comments --- contents/ui/main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3