update notify icon

This commit is contained in:
Luke Pulverenti 2016-01-13 15:59:32 -05:00
parent 9b527dcd4f
commit 150630f152

View File

@ -133,9 +133,22 @@ namespace MediaBrowser.ServerApplication
LocalizeText(); LocalizeText();
notifyIcon1.DoubleClick += notifyIcon1_DoubleClick; notifyIcon1.DoubleClick += notifyIcon1_DoubleClick;
Application.ThreadExit += Application_ThreadExit;
Application.ApplicationExit += Application_ApplicationExit; Application.ApplicationExit += Application_ApplicationExit;
} }
void Application_ThreadExit(object sender, EventArgs e)
{
try
{
notifyIcon1.Visible = false;
}
catch
{
}
}
void Application_ApplicationExit(object sender, EventArgs e) void Application_ApplicationExit(object sender, EventArgs e)
{ {
try try