Format code

This commit is contained in:
2025-08-05 16:32:55 +01:00
parent bf8c4bd51e
commit 64d1c420a2

View File

@@ -220,7 +220,7 @@ func dropToSignInPage(reason string) {
btn2 := widget.NewButton("Close pi", func() {
w.Close()
})
w.SetContent(container.NewVBox(rt, btn, btn2,footer))
w.SetContent(container.NewVBox(rt, btn, btn2, footer))
w.ShowAndRun()
}
@@ -235,7 +235,6 @@ func main() {
return
}
err = json.Unmarshal(bytes, &config)
if err != nil {
dropToSignInPage(fmt.Sprintf("Your pi.json file is invalid:\n%s", err.Error()))
@@ -458,10 +457,10 @@ func main() {
})
reconnect := fyne.NewMenuItem("reconnect", func() {
go func(){
go func() {
err := client.Connect()
if err != nil {
fyne.Do(func(){
fyne.Do(func() {
dialog.ShowError(err, w)
})
}