aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-13 15:59:32 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-13 16:02:03 -0500
commit5d30bfeb3c69f9c9743b3467fdd3e47e99317881 (patch)
tree587c1cbb039f70f383520751bad309626d708dad
parent1a2e5f41d58c9baecf3ec5958bb69286ffc8c399 (diff)
update notify icon
-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