mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-12 10:19:20 +08:00
Fixed Launcher not exiting when PT is terminated (#5588)
* Fixed Launcher not exiting when PT is terminated * Added a null check to _hotkeyManager as well
This commit is contained in:
parent
7581802498
commit
8f8787b2e0
@ -827,8 +827,8 @@ namespace PowerLauncher.ViewModel
|
||||
{
|
||||
_hotkeyManager.UnregisterHotkey(_hotkeyHandle);
|
||||
}
|
||||
_hotkeyManager.Dispose();
|
||||
_updateSource.Dispose();
|
||||
_hotkeyManager?.Dispose();
|
||||
_updateSource?.Dispose();
|
||||
_disposed = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user