Code to terminate wox when we exit PowerToys
This commit is contained in:
parent
855f092682
commit
7a3c326442
1 changed files with 8 additions and 0 deletions
|
@ -50,6 +50,14 @@ public:
|
|||
init_settings();
|
||||
};
|
||||
|
||||
~Wox_Launcher() {
|
||||
if (m_enabled)
|
||||
{
|
||||
TerminateProcess(m_hProcess, 1);
|
||||
}
|
||||
m_enabled = false;
|
||||
}
|
||||
|
||||
// Destroy the powertoy and free memory
|
||||
virtual void destroy() override {
|
||||
delete this;
|
||||
|
|
Loading…
Reference in a new issue