aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-25 14:46:16 -0500
committerMichael <[email protected]>2017-02-25 14:46:21 -0500
commit68eb6e95c6611bafa8a820ad3f8c123a351a9be9 (patch)
treef1810917bb7c0f040e55e49c2c97a003ffdb5d1c /ShiftOS_TheReturn
parentbd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411 (diff)
downloadshiftos_thereturn-68eb6e95c6611bafa8a820ad3f8c123a351a9be9.tar.gz
shiftos_thereturn-68eb6e95c6611bafa8a820ad3f8c123a351a9be9.tar.bz2
shiftos_thereturn-68eb6e95c6611bafa8a820ad3f8c123a351a9be9.zip
Button for marking all notes as read.
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/NotificationDaemon.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs
index 3ea8a54..5adc026 100644
--- a/ShiftOS_TheReturn/NotificationDaemon.cs
+++ b/ShiftOS_TheReturn/NotificationDaemon.cs
@@ -36,6 +36,13 @@ namespace ShiftOS.Engine
}
+ public static void MarkAllRead()
+ {
+ var notes = GetAllFromFile();
+ for (int i = 0; i < notes.Length; i++)
+ MarkRead(i);
+ }
+
public static void MarkRead(int note)
{
var notes = GetAllFromFile();