From 449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 Mar 2017 16:13:53 -0500 Subject: Finish user hacking. --- ShiftOS.WinForms/WinformsDesktop.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ShiftOS.WinForms/WinformsDesktop.cs') diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index a53ae3a..8900a69 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -70,8 +70,10 @@ namespace ShiftOS.WinForms NotificationDaemon.NotificationRead += () => { //Soon this will pop a balloon note. - btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")"; - + this.Invoke(new Action(() => + { + btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")"; + })); }; this.LocationChanged += (o, a) => -- cgit v1.2.3