From 67165d9325faf7c6eb8a978a0981fd602a02e892 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 10 May 2022 15:55:56 +0800 Subject: Remember finished activities --- contents/ui/main.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 1fc6779..41af62a 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -66,6 +66,7 @@ Item { title: announcement.title, url: announcement.html_url, important: plasmoid.configuration.importantAnnouncements.includes(announcement.id.toString()), + finished: plasmoid.configuration.finishedAnnouncements.includes(announcement.id.toString()), } if (info.important) { @@ -87,6 +88,7 @@ Item { submitted: assignment.has_submitted_submissions, url: assignment.html_url, important: plasmoid.configuration.importantAssignments.includes(assignment.id.toString()), + finished: plasmoid.configuration.finishedAssignments.includes(assignment.id.toString()), } if (!info.submitted || showSubmittedAssignments) { @@ -133,6 +135,7 @@ Item { title: "Code quality" url: "https://xkcd.com/1513" important: true + finished: false activityId: 0 } */ @@ -170,6 +173,7 @@ Item { submitted: true url: "https://xkcd.com/730" important: true + finished: true activityId: 1 } */ -- cgit v1.2.3