diff options
| author | lempamo <[email protected]> | 2017-02-25 14:48:57 -0500 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-02-25 14:48:57 -0500 |
| commit | ce0819e257497d9307a21770bb80423bbcd53248 (patch) | |
| tree | f1810917bb7c0f040e55e49c2c97a003ffdb5d1c /ShiftOS_TheReturn | |
| parent | 4c9640dcb26e110aac0b8be85db6aed9aeb246a6 (diff) | |
| parent | 68eb6e95c6611bafa8a820ad3f8c123a351a9be9 (diff) | |
| download | shiftos_thereturn-ce0819e257497d9307a21770bb80423bbcd53248.tar.gz shiftos_thereturn-ce0819e257497d9307a21770bb80423bbcd53248.tar.bz2 shiftos_thereturn-ce0819e257497d9307a21770bb80423bbcd53248.zip | |
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/NotificationDaemon.cs | 9 |
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() |
