From c4f855f3a559195d7b683ec4b96a18c42ce7b5fb Mon Sep 17 00:00:00 2001 From: william341 Date: Sat, 25 Feb 2017 12:36:26 -0700 Subject: fix notification mark as read not updating --- ShiftOS.WinForms/WinformsDesktop.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ShiftOS.WinForms/WinformsDesktop.cs') diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 957c793..fdb249a 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -68,6 +68,12 @@ namespace ShiftOS.WinForms }; + NotificationDaemon.NotificationRead += (note) => + { + btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")"; + + }; + this.LocationChanged += (o, a) => { if (this.Left != 0) -- cgit v1.2.3