Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Fixed problem resetting the Current Match tab inbetween matches, whic…
Browse files Browse the repository at this point in the history
…h was causing the coin to be incorrectly reported in match popups.

Fixes #507
  • Loading branch information
gtch committed Aug 10, 2014
1 parent c0152b4 commit 04f8cd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions uploader/src/main/scala/net/hearthstats/Monitor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ class Monitor(val environment: Environment) extends JFrame with Observer {
matchPanel.lastMatch = lastMatch
if (API.message.matches(".*(Edit match|Arena match successfully created).*")) {
HearthstoneAnalyser.hsMatch = new HearthstoneMatch
matchPanel.updateCurrentMatchUi()
matchPanel.resetMatchClassSelectors()
Log.divider()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class MatchPanel extends JPanel {
def resetMatchClassSelectors() {
_currentYourClassSelector.setSelectedIndex(0)
_currentOpponentClassSelect.setSelectedIndex(0)
_currentGameCoinField.setSelected(false)
}

def updateMatchClassSelectorsIfSet(hsMatch: HearthstoneMatch) {
Expand Down

0 comments on commit 04f8cd4

Please sign in to comment.