From 598914a67a9b53ba82e72c60921940974fc6cc44 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 3 Jan 2026 11:04:33 +0100 Subject: [PATCH] fix: Windows notifications filling up tray area --- lib/libimhex/source/helpers/utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/libimhex/source/helpers/utils.cpp b/lib/libimhex/source/helpers/utils.cpp index c3f273f33..a7c7d9be1 100644 --- a/lib/libimhex/source/helpers/utils.cpp +++ b/lib/libimhex/source/helpers/utils.cpp @@ -988,6 +988,12 @@ namespace hex { nid.dwInfoFlags = NIIF_INFO; Shell_NotifyIcon(NIM_ADD, &nid); + + Sleep(100); + + Shell_NotifyIcon(NIM_DELETE, &nid); + CloseWindow(hwnd); + DestroyWindow(hwnd); #elif defined(OS_MACOS) toastMessageMacos(title.c_str(), message.c_str()); #elif defined(OS_LINUX)