From 569ad6fd7a3944b970fd08e715c8107a14ae117b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Feb 2017 14:32:02 -0500 Subject: Fire event when note is marked read --- 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..c6ba90a 100644 --- a/ShiftOS_TheReturn/NotificationDaemon.cs +++ b/ShiftOS_TheReturn/NotificationDaemon.cs @@ -35,6 +35,7 @@ namespace ShiftOS.Engine NotificationMade?.Invoke(lst[lst.Count - 1]); } + public static event Action NotificationRead; public static void MarkRead(int note) { @@ -44,6 +45,7 @@ namespace ShiftOS.Engine notes[note].Read = true; WriteNotes(notes); + NotificationRead?.Invoke(); } public static int GetUnreadCount() -- cgit v1.2.3