Fix notification bug.

This commit is contained in:
Michael 2017-03-08 19:23:40 -05:00
parent 5f0cfb100c
commit 2ff2613287

View file

@ -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 += () =>