small cleanups

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-29 22:24:22 -07:00
parent 0ddfafec50
commit b213a90e20
2 changed files with 20 additions and 6 deletions

View File

@ -144,8 +144,7 @@ func main() {
// make this the main loop in an attempt to figure out the crashes
// do not change this until the GUI is stable
gui.InitNewWindow(config, "SPLASH")
gui.ShowWindow()
gui.StartNewWindow(config, false, "SPLASH")
// gui.Data.Window1 = new(gui.WindowMap)
// gui.Data.Window1.AreaText = getSplashText()
@ -345,7 +344,7 @@ func mainMouseClick(b *gui.ButtonMap) {
}
}
} else if (b.Action == "SHOW VM") {
gui.Data.CurrentVM = b.VM
// gui.Data.CurrentVM = b.VM
if (gui.Data.Debug) {
log.Println("\tATTEMPTING TO SHOW VM IN WINDOW")
// go gui.GoShowVM()

View File

@ -12,13 +12,28 @@ import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
func main() {
c := pb.MakeDefaultConfig()
var c *pb.Config
c = pb.MakeDefaultConfig()
gui.Data.MouseClick = mainMouseClick
i := 0
gui.Data.Hostname = "splash " + string(i)
gui.StartNewWindow(c, true, "SPLASH")
i += 1
gui.Data.Hostname = "splash " + string(i)
gui.StartNewWindow(c, true, "BLAH")
for {
gui.StartNewWindow(c, "SPLASH")
gui.StartNewWindow(c, "BLAH")
i += 1
gui.Data.Hostname = "splash " + string(i)
gui.StartNewWindow(c, false, "SPLASH")
i += 1
gui.Data.Hostname = "splash " + string(i)
gui.StartNewWindow(c, false, "BLAH")
}
}