Skip to content

Commit

Permalink
Check hasReplayData only if the tab is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 11, 2018
1 parent 1004525 commit abbacec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ local t =
end,
DisplayCommand = function(self)
score = rtTable[rates[rateIndex]][scoreIndex]
hasReplayData = score:HasReplayData()
if getTabIndex() == 2 then
hasReplayData = score:HasReplayData()
else
hasReplayData = false
end
setScoreForPlot(score)
end,
Def.Quad {
Expand Down

0 comments on commit abbacec

Please sign in to comment.