From 45ffc487538033a09c4c896293ec83434c65ecca Mon Sep 17 00:00:00 2001 From: HaibaraAi Date: Fri, 22 May 2020 16:30:45 +0800 Subject: [PATCH] File Explorer crash NotifyIcon disappear The Icon is gone, _added will be false, then add icon can be called --- src/Shared/HandyControl_Shared/Controls/Other/NotifyIcon.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Shared/HandyControl_Shared/Controls/Other/NotifyIcon.cs b/src/Shared/HandyControl_Shared/Controls/Other/NotifyIcon.cs index 592f3313d..02ca46338 100644 --- a/src/Shared/HandyControl_Shared/Controls/Other/NotifyIcon.cs +++ b/src/Shared/HandyControl_Shared/Controls/Other/NotifyIcon.cs @@ -574,6 +574,7 @@ private IntPtr Callback(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam) { if (msg == _wmTaskbarCreated) { + _added = false; UpdateIcon(true); } else