mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
Code to terminate wox when we exit PowerToys
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user