Skip to content

Commit

Permalink
Fix team color button not visually updating on web requests
Browse files Browse the repository at this point in the history
  • Loading branch information
sticks-stuff committed Nov 28, 2023
1 parent 5fdb613 commit 7e92737
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TSHScoreboardWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,10 @@ def ClearScore(self):
self.team2column.findChild(QCheckBox, "losers").setChecked(False)

def CommandTeamColor(self, team: int, color):
if team == 0:
self.colorButton1.setColor(color)
if team == 1:
self.colorButton2.setColor(color)
if team in (0, 1):
StateManager.BlockSaving()
StateManager.Set(
Expand Down

0 comments on commit 7e92737

Please sign in to comment.