mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
Restart the launcher if it had crashed when invoked (#7127)
This commit is contained in:
@@ -271,6 +271,12 @@ public:
|
||||
// For now, hotkeyId will always be zero
|
||||
if (m_enabled)
|
||||
{
|
||||
if (WaitForSingleObject(m_hProcess, 0) == WAIT_OBJECT_0)
|
||||
{
|
||||
// The process exited, restart it
|
||||
enable();
|
||||
}
|
||||
|
||||
SetEvent(m_hEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user