aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WinformsDesktop.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-07 16:13:53 -0500
committerMichael <[email protected]>2017-03-07 16:13:53 -0500
commit449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c (patch)
tree863d9c4a3dab9b029ce46245fae90bd2627ed223 /ShiftOS.WinForms/WinformsDesktop.cs
parent2a747334bd926d79537b9e8d4f38c79a815752e5 (diff)
downloadshiftos_thereturn-449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c.tar.gz
shiftos_thereturn-449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c.tar.bz2
shiftos_thereturn-449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c.zip
Finish user hacking.
Diffstat (limited to 'ShiftOS.WinForms/WinformsDesktop.cs')
-rw-r--r--ShiftOS.WinForms/WinformsDesktop.cs6
1 files changed, 4 insertions, 2 deletions
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) =>