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]); }