Code to terminate wox when we exit PowerToys

This commit is contained in:
Alekhya Reddy 2020-03-18 16:13:36 -07:00
parent 855f092682
commit 7a3c326442

View file

@ -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;