From 1bea3dd41241688fd247bd0bf79c1186b08ca664 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Sun, 24 May 2020 19:57:39 +0200 Subject: [PATCH] Fixed bug where the buy flower button wasn't enabled on load. --- buyflowerbutton.go | 1 + 1 file changed, 1 insertion(+) diff --git a/buyflowerbutton.go b/buyflowerbutton.go index be9a236..0c1e95e 100644 --- a/buyflowerbutton.go +++ b/buyflowerbutton.go @@ -96,6 +96,7 @@ func (b *BuyFlowerButton) updateTexts(ctx ui.Context) error { if err := b.priceTexture.Update(textUpdate(ctx.Renderer(), font, color, FmtMoney(b.Flower.BuyPrice))); err != nil { return err } + b.Disabled = !b.Flower.Unlocked b.upToDate = true return nil }