Skip to content

Commit

Permalink
fix: songs paste now enables submit
Browse files Browse the repository at this point in the history
  • Loading branch information
agukrapo committed Jul 24, 2024
1 parent 0654ff8 commit 4791ae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4791ae6

Please sign in to comment.