Add ability to wait for a specific process (instead of the current one)

This commit is contained in:
Caelan Sayler
2025-02-02 19:44:38 +00:00
committed by Caelan
parent c8688ebefb
commit c596e0e986
10 changed files with 177 additions and 66 deletions

View File

@@ -179,7 +179,7 @@ private:
try
{
updateManager->WaitExitThenApplyUpdate(updateInfo.value());
updateManager->WaitExitThenApplyUpdates(updateInfo.value());
wxTheApp->ExitMainLoop();
}
catch (...) { /* exception will print in log */ }

View File

@@ -188,7 +188,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
MessageBoxCentered(hWnd, L"Download an update first.", szTitle, MB_OK);
}
else {
manager->WaitExitThenApplyUpdate(updInfo.value());
manager->WaitExitThenApplyUpdates(updInfo.value());
exit(0);
}
}