mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
runner: fix Restart as... option
This commit is contained in:
parent
2c2a29cd91
commit
d45b0dee10
@ -213,7 +213,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||
MessageBoxW(nullptr, std::wstring(err_what.begin(), err_what.end()).c_str(), GET_RESOURCE_STRING(IDS_ERROR).c_str(), MB_OK | MB_ICONERROR);
|
||||
result = -1;
|
||||
}
|
||||
|
||||
// We need to release mutices to be able to restart the application
|
||||
msi_mutex.reset(nullptr);
|
||||
msix_mutex.reset(nullptr);
|
||||
if (is_restart_scheduled())
|
||||
{
|
||||
if (restart_if_scheduled() == false)
|
||||
|
Loading…
Reference in New Issue
Block a user