added panic check for gui + entry text reset

This commit is contained in:
0xdcarns 2022-05-06 10:44:25 -04:00
parent 0e41dc5988
commit ca443f18ef
3 changed files with 6 additions and 1 deletions

View file

@ -43,6 +43,7 @@ func GetJoinView() fyne.CanvasObject {
return
}
SuccessNotify("Joined " + cfg.Network + "!")
input.Text = ""
RefreshComponent(Networks, GetNetworksView(networks))
ShowView(Networks)
// TODO

View file

@ -96,6 +96,11 @@ func Run(networks []string) error {
views.CurrentContent.Add(views.GetView(views.Join))
window.SetContent(views.CurrentContent)
defer func() {
if r := recover(); r != nil {
logger.Log(0, "No monitor detected, please use CLI commands; use -help for more info.")
}
}()
window.ShowAndRun()
return nil
}

View file

@ -1,7 +1,6 @@
//go:build gui
// +build gui
//go:generate goversioninfo -icon=windowsdata/resource/netmaker.ico -manifest=netclient.exe.manifest.xml -64=true -o=netclient.syso
package main
import (