Example files now reflect new API change

This commit is contained in:
2023-01-30 17:25:09 -05:00
parent 801c3ef6f5
commit 58c3b23a99
6 changed files with 12 additions and 12 deletions

View File

@@ -43,7 +43,7 @@ func NewDialog (
button := basic.NewButton("OK")
button.OnClick(window.Close)
container.Adopt(button, false)
button.Select()
button.Focus()
} else {
var button *basic.Button
for _, buttonDescriptor := range buttons {
@@ -55,7 +55,7 @@ func NewDialog (
})
container.Adopt(button, false)
}
button.Select()
button.Focus()
}
window.Show()