Skip to content

Commit

Permalink
fix region switching (HearthSim#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed May 5, 2015
1 parent 0012166 commit 9678312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hearthstone Deck Tracker/HsLogReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,8 @@ public void ClearLog()
Logger.WriteLine("Error cleared log file: " + e, "LogReader");
}
}
else
Logger.WriteLine("Logfile was not cleared! (ClearLogFileAfterGame = false)", "LogReader");
_gameLoaded = false;
}

Expand Down
2 changes: 2 additions & 0 deletions Hearthstone Deck Tracker/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,8 @@ private async void UpdateOverlayAsync()
{
//game was closed
Logger.WriteLine("Exited game", "UpdateOverlayLoop");
Game.CurrentRegion = Region.UNKNOWN;
Logger.WriteLine("Reset region", "UpdateOverlayLoop");
HsLogReader.Instance.ClearLog();
Game.Reset();
if(DeckList.Instance.ActiveDeck != null)
Expand Down

0 comments on commit 9678312

Please sign in to comment.