aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/NotificationDaemon.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-24 21:41:25 -0500
committerMichael <[email protected]>2017-02-24 21:41:25 -0500
commitdc78cb99e6e98b5612d43f039e2e1fb7ce155bb8 (patch)
tree278d71c4dc7c5544305e6fee2ebcaba3f0423f89 /ShiftOS_TheReturn/NotificationDaemon.cs
parent894c2275d958a83a13d8f8d4de7ba321a0721762 (diff)
downloadshiftos_thereturn-dc78cb99e6e98b5612d43f039e2e1fb7ce155bb8.tar.gz
shiftos_thereturn-dc78cb99e6e98b5612d43f039e2e1fb7ce155bb8.tar.bz2
shiftos_thereturn-dc78cb99e6e98b5612d43f039e2e1fb7ce155bb8.zip
Forgot to add NotificationMade event.
Diffstat (limited to 'ShiftOS_TheReturn/NotificationDaemon.cs')
-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]);
}