aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-02-25 14:39:26 -0500
committerlempamo <[email protected]>2017-02-25 14:39:26 -0500
commit4c9640dcb26e110aac0b8be85db6aed9aeb246a6 (patch)
treee470887b3886d72b51147ffca3d205ff1393cf34 /ShiftOS.WinForms/Applications
parent4d769d43e3282e3576faf0a53cb0736d546b1883 (diff)
parent569ad6fd7a3944b970fd08e715c8107a14ae117b (diff)
downloadshiftos_thereturn-4c9640dcb26e110aac0b8be85db6aed9aeb246a6.tar.gz
shiftos_thereturn-4c9640dcb26e110aac0b8be85db6aed9aeb246a6.tar.bz2
shiftos_thereturn-4c9640dcb26e110aac0b8be85db6aed9aeb246a6.zip
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Notifications.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Notifications.cs b/ShiftOS.WinForms/Applications/Notifications.cs
index 6fb659d..540d2b5 100644
--- a/ShiftOS.WinForms/Applications/Notifications.cs
+++ b/ShiftOS.WinForms/Applications/Notifications.cs
@@ -23,9 +23,14 @@ namespace ShiftOS.WinForms.Applications
{
SetupUI();
};
+ onRead += () =>
+ {
+ SetupUI();
+ };
}
Action<Notification> onMade = null;
+ Action onRead = null;
public void SetupUI()
{
@@ -227,6 +232,7 @@ namespace ShiftOS.WinForms.Applications
{
SetupUI();
NotificationDaemon.NotificationMade += onMade;
+ NotificationDaemon.NotificationRead += onRead;
}
public void OnSkinLoad()
@@ -236,6 +242,7 @@ namespace ShiftOS.WinForms.Applications
public bool OnUnload()
{
NotificationDaemon.NotificationMade -= onMade;
+ NotificationDaemon.NotificationRead -= onRead;
return true;
}