mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-11 15:44:52 +08:00
added panic check for gui + entry text reset
This commit is contained in:
parent
0e41dc5988
commit
ca443f18ef
3 changed files with 6 additions and 1 deletions
|
@ -43,6 +43,7 @@ func GetJoinView() fyne.CanvasObject {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
SuccessNotify("Joined " + cfg.Network + "!")
|
SuccessNotify("Joined " + cfg.Network + "!")
|
||||||
|
input.Text = ""
|
||||||
RefreshComponent(Networks, GetNetworksView(networks))
|
RefreshComponent(Networks, GetNetworksView(networks))
|
||||||
ShowView(Networks)
|
ShowView(Networks)
|
||||||
// TODO
|
// TODO
|
||||||
|
|
|
@ -96,6 +96,11 @@ func Run(networks []string) error {
|
||||||
views.CurrentContent.Add(views.GetView(views.Join))
|
views.CurrentContent.Add(views.GetView(views.Join))
|
||||||
|
|
||||||
window.SetContent(views.CurrentContent)
|
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()
|
window.ShowAndRun()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
//go:build gui
|
//go:build gui
|
||||||
// +build gui
|
// +build gui
|
||||||
|
|
||||||
//go:generate goversioninfo -icon=windowsdata/resource/netmaker.ico -manifest=netclient.exe.manifest.xml -64=true -o=netclient.syso
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Add table
Reference in a new issue