mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Code to terminate wox when we exit PowerToys
This commit is contained in:
@@ -50,6 +50,14 @@ public:
|
|||||||
init_settings();
|
init_settings();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
~Wox_Launcher() {
|
||||||
|
if (m_enabled)
|
||||||
|
{
|
||||||
|
TerminateProcess(m_hProcess, 1);
|
||||||
|
}
|
||||||
|
m_enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Destroy the powertoy and free memory
|
// Destroy the powertoy and free memory
|
||||||
virtual void destroy() override {
|
virtual void destroy() override {
|
||||||
delete this;
|
delete this;
|
||||||
|
|||||||
Reference in New Issue
Block a user