From 7e92737bea9fc79bf8c267cc3bb33b513b2f475c Mon Sep 17 00:00:00 2001 From: charlotte Date: Tue, 28 Nov 2023 23:28:00 +1300 Subject: [PATCH] Fix team color button not visually updating on web requests --- src/TSHScoreboardWidget.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TSHScoreboardWidget.py b/src/TSHScoreboardWidget.py index 51679e609..60c7ad4a3 100644 --- a/src/TSHScoreboardWidget.py +++ b/src/TSHScoreboardWidget.py @@ -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(