diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-24 13:42:00 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:51 +0100 |
| commit | 8f11ebc2c028e2c5303b7acc5febe982290e60ec (patch) | |
| tree | f005b29e86443b9620a75714bffb92ea4acd50a6 | |
| parent | 31105395f2af79a53777d923db412e0785ed649f (diff) | |
| download | muhqs-game-8f11ebc2c028e2c5303b7acc5febe982290e60ec.tar.gz muhqs-game-8f11ebc2c028e2c5303b7acc5febe982290e60ec.zip | |
do not draw the pass button multiple times
| -rw-r--r-- | go/client/game.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/client/game.go b/go/client/game.go index f4e0f817..00047d5d 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -340,7 +340,9 @@ func (g *Game) declareAction(a game.Action) { } func (g *Game) showPassButton() { - g.AddWidget(g.passButton) + if g.FindWidget(g.passButton) == -1 { + g.AddWidget(g.passButton) + } } func (g *Game) hidePassButton() { |
