Skip to content

Commit

Permalink
修复Windows Explorer重启后托盘图标消失的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DearVa committed Sep 4, 2022
1 parent c2beb83 commit 79d6259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions External/HandyControl/Controls/Other/NotifyIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ public class NotifyIcon : FrameworkElement, IDisposable {
private IntPtr Callback(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam) {
if (msg == wmTaskbarCreated) {
if (Hwnd == hWnd && Visibility == Visibility.Visible) {
added = false;
UpdateIcon(true);
}
} else {
Expand Down

0 comments on commit 79d6259

Please sign in to comment.