Skip to content

Commit

Permalink
fix dumb issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andro404-MC committed May 12, 2024
1 parent 0dc2d8d commit 1597f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ func main() {
// Settings
apiLabel := widget.NewLabel("APIKEY")
apiInput := widget.NewPasswordEntry()
apiAplly := widget.NewButton("Save", func() { save(&config); load(&config) })
apiInput.Text = config.Apikey
apiInput.OnChanged = func(s string) { config.Apikey = s }
apiAplly := widget.NewButton("Save", func() { save(&config); load(&config) })

setting := container.NewBorder(
container.NewBorder(nil, nil, apiLabel, nil, apiInput),
Expand Down

0 comments on commit 1597f2a

Please sign in to comment.