mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +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
|
// For now, hotkeyId will always be zero
|
||||||
if (m_enabled)
|
if (m_enabled)
|
||||||
{
|
{
|
||||||
|
if (WaitForSingleObject(m_hProcess, 0) == WAIT_OBJECT_0)
|
||||||
|
{
|
||||||
|
// The process exited, restart it
|
||||||
|
enable();
|
||||||
|
}
|
||||||
|
|
||||||
SetEvent(m_hEvent);
|
SetEvent(m_hEvent);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user