aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-08 19:23:40 -0500
committerMichael <[email protected]>2017-03-08 19:23:40 -0500
commit2ff261328740cbb628678605b09800f22c9b67a9 (patch)
tree26002bfe906c3ba2f881e365ca94c712950f395d
parent5f0cfb100cc0698ede828857393b7fd3f44af73d (diff)
downloadshiftos_thereturn-2ff261328740cbb628678605b09800f22c9b67a9.tar.gz
shiftos_thereturn-2ff261328740cbb628678605b09800f22c9b67a9.tar.bz2
shiftos_thereturn-2ff261328740cbb628678605b09800f22c9b67a9.zip
Fix notification bug.
-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 8900a69..d30adb4 100644
--- a/ShiftOS.WinForms/WinformsDesktop.cs
+++ b/ShiftOS.WinForms/WinformsDesktop.cs
@@ -63,8 +63,10 @@ namespace ShiftOS.WinForms
NotificationDaemon.NotificationMade += (note) =>
{
//Soon this will pop a balloon note.
- btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")";
-
+ this.Invoke(new Action(() =>
+ {
+ btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")";
+ }));
};
NotificationDaemon.NotificationRead += () =>