From 68eb6e95c6611bafa8a820ad3f8c123a351a9be9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Feb 2017 14:46:16 -0500 Subject: Button for marking all notes as read. --- ShiftOS_TheReturn/NotificationDaemon.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ShiftOS_TheReturn') 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(); -- cgit v1.2.3