Skip to content

Commit

Permalink
Merge branch 'master' of github.com:poma/HotsStats
Browse files Browse the repository at this point in the history
  • Loading branch information
poma committed Jun 15, 2016
2 parents e8f1d43 + d0fb510 commit 80e8d49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion StatsDisplay/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ private void SetupHotkeys()
{
_hotKey = new HotKey(Key.Tab, KeyModifier.Shift | KeyModifier.NoRepeat);
_hotKey.Pressed += (o, e) => {
if (_currentWindow?.IsVisible ?? false) {
if (_currentWindow == null) {
return;
}
if (_currentWindow.IsVisible) {
_currentWindow.Hide();
} else {
_currentWindow.Show();
Expand Down

0 comments on commit 80e8d49

Please sign in to comment.