diff options
| author | Michael <[email protected]> | 2017-02-25 14:32:02 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-25 14:32:08 -0500 |
| commit | 569ad6fd7a3944b970fd08e715c8107a14ae117b (patch) | |
| tree | e470887b3886d72b51147ffca3d205ff1393cf34 /ShiftOS_TheReturn/NotificationDaemon.cs | |
| parent | ed5b6549369d470f8aaafbae7716081448377369 (diff) | |
| download | shiftos_thereturn-569ad6fd7a3944b970fd08e715c8107a14ae117b.tar.gz shiftos_thereturn-569ad6fd7a3944b970fd08e715c8107a14ae117b.tar.bz2 shiftos_thereturn-569ad6fd7a3944b970fd08e715c8107a14ae117b.zip | |
Fire event when note is marked read
Diffstat (limited to 'ShiftOS_TheReturn/NotificationDaemon.cs')
| -rw-r--r-- | ShiftOS_TheReturn/NotificationDaemon.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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() |
