Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
4b688551
Commit
4b688551
authored
May 19, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决 右下角图标残像问题
parent
35dce934
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
WindowNotifyIconHelper.cs
...ect.FLY.AppHelper/FLY.AppHelper/WindowNotifyIconHelper.cs
+4
-3
No files found.
Project.FLY.AppHelper/FLY.AppHelper/WindowNotifyIconHelper.cs
View file @
4b688551
...
...
@@ -54,7 +54,7 @@ namespace FLY.AppHelper
private
void
Application_ApplicationExit
(
object
sender
,
EventArgs
e
)
{
notifyIcon
.
Dispose
();
System
.
Environment
.
Exit
(
0
);
//这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
//
System.Environment.Exit(0); //这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
}
...
...
@@ -69,9 +69,10 @@ namespace FLY.AppHelper
if
(
r
==
System
.
Windows
.
MessageBoxResult
.
Yes
)
{
//notifyIcon.Visible = false;
//
notifyIcon.Dispose();
notifyIcon
.
Dispose
();
//System.Windows.Application.Current.Shutdown();
Application
.
Exit
();
//Application.Exit();
System
.
Environment
.
Exit
(
0
);
//这个是不会触发 ApplicationExit, 但可以把全部线程清除掉
}
}
void
window_Closing
(
object
sender
,
System
.
ComponentModel
.
CancelEventArgs
e
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment