aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-02-25 15:04:35 -0700
committerwilliam341 <[email protected]>2017-02-25 15:04:35 -0700
commit8a60eba70b4875c7e382b933d1c835f6f857cdd0 (patch)
tree3acae4c32293136ec3a9d310a4f484a11958e9fa
parentf4ce36a18a125160dc3faa1110e060e9a58a7274 (diff)
downloadshiftos_thereturn-8a60eba70b4875c7e382b933d1c835f6f857cdd0.tar.gz
shiftos_thereturn-8a60eba70b4875c7e382b933d1c835f6f857cdd0.tar.bz2
shiftos_thereturn-8a60eba70b4875c7e382b933d1c835f6f857cdd0.zip
infernal noises from hell (aka DooM
-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