Fixed tray icon handling after Explorer restarts.

This commit is contained in:
2024-03-02 15:57:05 +03:00
parent c81de4f897
commit 0de71bfe21

View File

@@ -385,9 +385,9 @@ LRESULT CALLBACK WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lPar
default: default:
{ {
if (message == uMsgRestore) { if (message == uMsgRestore) {
Shell_NotifyIconW(NIM_DELETE, &nid); logger.Out(L"%s(%d): Recieved the 'TaskbarCreated' message", TEXT(__FUNCTION__), __LINE__);
Shell_NotifyIconW(NIM_ADD, &nid);
Shell_NotifyIconW(NIM_SETVERSION, &nid); HandlingTrayIcon();
break; break;
} }
return DefWindowProcW(hMainWnd, message, wParam, lParam); return DefWindowProcW(hMainWnd, message, wParam, lParam);