[idd] helper: send message over pipe when settings changed
This commit is contained in:
1 parent
e4e211f07a
commit
0664e510a2
8 files changed
+50
-9
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user