mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-10 07:05:28 +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
|
||||
}
|
||||
SuccessNotify("Joined " + cfg.Network + "!")
|
||||
input.Text = ""
|
||||
RefreshComponent(Networks, GetNetworksView(networks))
|
||||
ShowView(Networks)
|
||||
// TODO
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Add table
Reference in a new issue