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:
Ivan Stošić 2020-08-04 14:33:07 +02:00 committed by GitHub
parent 7581802498
commit 8f8787b2e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -827,8 +827,8 @@ namespace PowerLauncher.ViewModel
{ {
_hotkeyManager.UnregisterHotkey(_hotkeyHandle); _hotkeyManager.UnregisterHotkey(_hotkeyHandle);
} }
_hotkeyManager.Dispose(); _hotkeyManager?.Dispose();
_updateSource.Dispose(); _updateSource?.Dispose();
_disposed = true; _disposed = true;
} }
} }