aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-01-19 14:54:07 -0500
committerLuke <luke.pulverenti@gmail.com>2016-01-19 14:54:07 -0500
commit236b5caee2797d4a8af857cea2f3859bc94d3948 (patch)
tree210242ec629d84baa9811dacdad3931a4e5c7b35 /MediaBrowser.ServerApplication/ServerNotifyIcon.cs
parente951dd20d95c81da29d4f9d8a2cb927e7639518b (diff)
parenta5d54256ffb79dd1d0a06df0536f772bbeff9d3d (diff)
Merge pull request #1409 from MediaBrowser/beta
merge from beta
Diffstat (limited to 'MediaBrowser.ServerApplication/ServerNotifyIcon.cs')
-rw-r--r--MediaBrowser.ServerApplication/ServerNotifyIcon.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
index e9a7d5985..673c6cddd 100644
--- a/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
+++ b/MediaBrowser.ServerApplication/ServerNotifyIcon.cs
@@ -133,9 +133,22 @@ namespace MediaBrowser.ServerApplication
LocalizeText();
notifyIcon1.DoubleClick += notifyIcon1_DoubleClick;
+ Application.ThreadExit += Application_ThreadExit;
Application.ApplicationExit += Application_ApplicationExit;
}
+ void Application_ThreadExit(object sender, EventArgs e)
+ {
+ try
+ {
+ notifyIcon1.Visible = false;
+ }
+ catch
+ {
+
+ }
+ }
+
void Application_ApplicationExit(object sender, EventArgs e)
{
try