From c4f855f3a559195d7b683ec4b96a18c42ce7b5fb Mon Sep 17 00:00:00 2001 From: william341 Date: Sat, 25 Feb 2017 12:36:26 -0700 Subject: fix notification mark as read not updating --- ShiftOS_TheReturn/NotificationDaemon.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ShiftOS_TheReturn') diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs index 3ea8a54..3c710fd 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -38,12 +38,14 @@ namespace ShiftOS.Engine public static void MarkRead(int note) { + var lst = new List(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() -- cgit v1.2.3