diff options
| author | william341 <[email protected]> | 2017-02-25 12:37:14 -0700 |
|---|---|---|
| committer | william341 <[email protected]> | 2017-02-25 12:37:14 -0700 |
| commit | bd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411 (patch) | |
| tree | cd43f2b8e9292e8ae486bbe51d1be3bee51ed6b3 /ShiftOS_TheReturn | |
| parent | c4f855f3a559195d7b683ec4b96a18c42ce7b5fb (diff) | |
| parent | 569ad6fd7a3944b970fd08e715c8107a14ae117b (diff) | |
| download | shiftos_thereturn-bd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411.tar.gz shiftos_thereturn-bd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411.tar.bz2 shiftos_thereturn-bd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411.zip | |
Revert "fix notification mark as read not updating"
This reverts commit c4f855f3a559195d7b683ec4b96a18c42ce7b5fb.
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/NotificationDaemon.cs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs index 3c710fd..3ea8a54 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -38,14 +38,12 @@ namespace ShiftOS.Engine public static void MarkRead(int note) { - var lst = new List<Notification>(GetAllFromFile()); var notes = GetAllFromFile(); if (note >= notes.Length || note < 0) throw new ArgumentOutOfRangeException("note", new Exception("You cannot mark a notification that does not exist as read.")); notes[note].Read = true; WriteNotes(notes); - NotificationMade?.Invoke(lst[lst.Count - 1]); } public static int GetUnreadCount() |
