diff options
Diffstat (limited to 'contents/ui')
-rw-r--r-- | contents/ui/main.qml | 5 |
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 |