aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsDesktop.cs
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-02-25 13:19:53 -0700
committerwilliam341 <[email protected]>2017-02-25 13:19:53 -0700
commit5afced5136dab902e97eab02e25c2add3e2652d1 (patch)
treecb14243ec92caed32d283b50d2f2efe2d91df16b /ShiftOS.WinForms/WinformsDesktop.cs
parenta398d348dd1d8cd11aa0d2f69e0fa6d2265f2a0a (diff)
downloadshiftos_thereturn-5afced5136dab902e97eab02e25c2add3e2652d1.tar.gz
shiftos_thereturn-5afced5136dab902e97eab02e25c2add3e2652d1.tar.bz2
shiftos_thereturn-5afced5136dab902e97eab02e25c2add3e2652d1.zip
Revert "Revert "fix notification mark as read not updating""
This reverts commit bd41ad18fe55fcd5bcba9fdbd0bb2c86edd01411, reversing changes made to c4f855f3a559195d7b683ec4b96a18c42ce7b5fb.
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs6
1 files changed, 6 insertions, 0 deletions
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)