Skip to content

Commit

Permalink
Merge pull request #660 from sticks-stuff/bug/team-color
Browse files Browse the repository at this point in the history
Fix team color button not visually updating on web requests
  • Loading branch information
joaorb64 authored Nov 28, 2023
2 parents 5fdb613 + 7e92737 commit f329a18
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 f329a18

Please sign in to comment.