aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/NotificationDaemon.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs
index 034db7e..6eb0b7b 100644
--- a/ShiftOS_TheReturn/NotificationDaemon.cs
+++ b/ShiftOS_TheReturn/NotificationDaemon.cs
@@ -37,6 +37,13 @@ namespace ShiftOS.Engine
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)
{
var notes = GetAllFromFile();
@@ -56,6 +63,7 @@ namespace ShiftOS.Engine
c++; //gahh I hate that programming language.
return c;
}
+
}
public struct Notification