change the button text after click

This commit is contained in:
Jeff Carr 2024-02-23 07:47:37 -06:00
parent 17067da936
commit 0a42976595
1 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,8 @@ func globalDisplayOptions(box *gui.Node) {
})
grid.NextRow()
grid.NewButton("increment tags", func() {
var incrementTags *gui.Node
incrementTags = grid.NewButton("increment tags", func() {
for _, repo := range me.repos.View.AllRepos() {
if whitelist(repo.GoPath()) {
continue
@ -154,6 +155,7 @@ func globalDisplayOptions(box *gui.Node) {
continue
}
}
incrementTags.SetText("maybe done?")
})
grid.NextRow()