mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add ability to wait for a specific process (instead of the current one)
This commit is contained in:
@@ -179,7 +179,7 @@ private:
|
||||
|
||||
try
|
||||
{
|
||||
updateManager->WaitExitThenApplyUpdate(updateInfo.value());
|
||||
updateManager->WaitExitThenApplyUpdates(updateInfo.value());
|
||||
wxTheApp->ExitMainLoop();
|
||||
}
|
||||
catch (...) { /* exception will print in log */ }
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user