From 4791ae63185ab690f82795781feb1aaf7d57068d Mon Sep 17 00:00:00 2001 From: Agustin Krapovickas Date: Wed, 24 Jul 2024 20:06:41 -0300 Subject: [PATCH] fix: songs paste now enables submit --- cmd/gui/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/gui/main.go b/cmd/gui/main.go index 9a256a3..047dfec 100644 --- a/cmd/gui/main.go +++ b/cmd/gui/main.go @@ -70,6 +70,9 @@ func (a *application) renderForm() { songs := widget.NewMultiLineEntry() songs.SetMinRowsVisible(30) songs.Validator = notEmpty("songs") + songs.OnChanged = func(_ string) { + _ = songs.Validate() // force submit button to enable after a paste + } reset := func() { arl.SetText(a.cookie)