aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/NotificationDaemon.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn/NotificationDaemon.cs')
-rw-r--r--ShiftOS_TheReturn/NotificationDaemon.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs
index c6ba90a..5adc026 100644
--- a/ShiftOS_TheReturn/NotificationDaemon.cs
+++ b/ShiftOS_TheReturn/NotificationDaemon.cs
@@ -35,7 +35,13 @@ namespace ShiftOS.Engine
NotificationMade?.Invoke(lst[lst.Count - 1]);
}
- public static event Action NotificationRead;
+
+ public static void MarkAllRead()
+ {
+ var notes = GetAllFromFile();
+ for (int i = 0; i < notes.Length; i++)
+ MarkRead(i);
+ }
public static void MarkRead(int note)
{
@@ -45,7 +51,6 @@ namespace ShiftOS.Engine
notes[note].Read = true;
WriteNotes(notes);
- NotificationRead?.Invoke();
}
public static int GetUnreadCount()