Format code
This commit is contained in:
7
main.go
7
main.go
@@ -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)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user