Commit 4b688551 authored by 潘栩锋's avatar 潘栩锋 🚴

解决 右下角图标残像问题

parent 35dce934
...@@ -54,7 +54,7 @@ namespace FLY.AppHelper ...@@ -54,7 +54,7 @@ namespace FLY.AppHelper
private void Application_ApplicationExit(object sender, EventArgs e) private void Application_ApplicationExit(object sender, EventArgs e)
{ {
notifyIcon.Dispose(); notifyIcon.Dispose();
System.Environment.Exit(0); //这个是不会触发 ApplicationExit, 但可以把全部线程清除掉 //System.Environment.Exit(0); //这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
} }
...@@ -69,9 +69,10 @@ namespace FLY.AppHelper ...@@ -69,9 +69,10 @@ namespace FLY.AppHelper
if (r == System.Windows.MessageBoxResult.Yes) if (r == System.Windows.MessageBoxResult.Yes)
{ {
//notifyIcon.Visible = false; //notifyIcon.Visible = false;
//notifyIcon.Dispose(); notifyIcon.Dispose();
//System.Windows.Application.Current.Shutdown(); //System.Windows.Application.Current.Shutdown();
Application.Exit(); //Application.Exit();
System.Environment.Exit(0); //这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
} }
} }
void window_Closing(object sender, System.ComponentModel.CancelEventArgs e) void window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment