From 9f19e4bd92197a76ef7a107f1d404d7a7ddcb050 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 11 May 2020 15:23:07 +0200 Subject: [PATCH] Updating flower texts after closing a dialog to be sure. --- gamecontrols.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gamecontrols.go b/gamecontrols.go index 99f29c9..512ebe5 100644 --- a/gamecontrols.go +++ b/gamecontrols.go @@ -87,7 +87,10 @@ func (c *GameControls) Init(ctx *Context) error { c.game.SpeedChanged().RegisterItf(c.speedChanged) c.game.ToolChanged().RegisterItf(c.toolChanged) c.dialogs.DialogOpened().Register(func() { c.game.Pause() }) - c.dialogs.DialogClosed().Register(func() { c.game.Resume() }) + c.dialogs.DialogClosed().Register(func() { + c.updateFlowerControls(ctx) + c.game.Resume() + }) c.flowers.Background = MustHexColor("#356dad") c.flowers.ButtonLength = 64