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

This commit is contained in:
Quantum
2026-06-05 00:00:45 -04:00
committed by Geoffrey McRae
parent e4e211f07a
commit 0664e510a2
8 changed files with 50 additions and 9 deletions

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");