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 }