Skip to content

Commit

Permalink
Fixed Launcher not exiting when PT is terminated (#5588)
Browse files Browse the repository at this point in the history
* Fixed Launcher not exiting when PT is terminated

* Added a null check to _hotkeyManager as well
  • Loading branch information
ivan100sic authored and enricogior committed Aug 4, 2020
1 parent 67d1985 commit 036819e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,8 @@ protected virtual void Dispose(bool disposing)
{
_hotkeyManager.UnregisterHotkey(_hotkeyHandle);
}
_hotkeyManager.Dispose();
_updateSource.Dispose();
_hotkeyManager?.Dispose();
_updateSource?.Dispose();
_disposed = true;
}
}
Expand Down

0 comments on commit 036819e

Please sign in to comment.