Added null check before using unregister hotkey function (#5627)

This commit is contained in:
Alekhya
2020-08-05 08:06:03 -07:00
committed by GitHub
parent dce3ee440b
commit 814f6213fa

View File

@@ -825,7 +825,7 @@ namespace PowerLauncher.ViewModel
{
if (_hotkeyHandle != 0)
{
_hotkeyManager.UnregisterHotkey(_hotkeyHandle);
_hotkeyManager?.UnregisterHotkey(_hotkeyHandle);
}
_hotkeyManager?.Dispose();
_updateSource?.Dispose();