aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/NotificationDaemon.cs3
1 files changed, 3 insertions, 0 deletions
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<Notification> NotificationMade;
+
public static void AddNotification(NotificationType note, object data)
{
var lst = new List<Notification>(GetAllFromFile());
lst.Add(new Engine.Notification(note, data));
WriteNotes(lst.ToArray());
+ NotificationMade?.Invoke(lst[lst.Count - 1]);
}