[idd] helper: send message over pipe when settings changed

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2026-06-06 02:30:43 +10:00
1 parent e4e211f07a
commit 0664e510a2
8 files changed
+50 -9

No files matched your search

+4
View File
@@ -120,6 +120,10 @@ int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _
if (!g_pipe.Init())
return EXIT_FAILURE;
window.onSettingChange([]() {
g_pipe.ReloadSettings();
});
HANDLE hWait;
if (!RegisterWaitForSingleObject(&hWait, hParent.Get(), DestroyNotifyWindow, &window, INFINITE, WT_EXECUTEONLYONCE))
DEBUG_ERROR_HR(GetLastError(), "Failed to RegisterWaitForSingleObject");