From dc78cb99e6e98b5612d43f039e2e1fb7ce155bb8 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 24 Feb 2017 21:41:25 -0500 Subject: [PATCH] Forgot to add NotificationMade event. --- ShiftOS_TheReturn/NotificationDaemon.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ShiftOS_TheReturn/NotificationDaemon.cs b/ShiftOS_TheReturn/NotificationDaemon.cs index 4220116..3a2e96a 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -25,11 +25,14 @@ namespace ShiftOS.Engine Utils.WriteAllText(Paths.GetPath("notifications.dat"), JsonConvert.SerializeObject(notes, Formatting.Indented)); } + public static event Action NotificationMade; + public static void AddNotification(NotificationType note, object data) { var lst = new List(GetAllFromFile()); lst.Add(new Engine.Notification(note, data)); WriteNotes(lst.ToArray()); + NotificationMade?.Invoke(lst[lst.Count - 1]); }