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