retry to try to distroy the splash screen correctly

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-13 14:16:29 -07:00
parent d20e7cea65
commit 150cc5963c
2 changed files with 9 additions and 3 deletions

View File

@ -22,7 +22,7 @@ func debugClick(b *gui.GuiButton) {
box := gui.InitWindow(gw, "Debugging", gui.Yaxis)
if (box == nil) { return }
gw = box.Window
log.Println("debugClick() initWindow() END")
log.Println("debugClick() InitWindow() END")
makeButton(box, nil, nil, "empty", "SUBDOMAIN", nil)
gui.HorizontalBreak(box)

View File

@ -11,11 +11,17 @@ import _ "github.com/andlabs/ui/winmanifest"
// import pb "git.wit.com/wit/witProtobuf"
func showSplashBox(gw *gui.GuiWindow) *gui.GuiBox {
func showSplashBox(box *gui.GuiBox) *gui.GuiBox {
log.Println("ShowSplashBox() START")
text := getNEWTEXT()
// hardXbox := gui.HardBox(box.Window, gui.Xaxis, "jcarr test")
// TODO: turn 'Welcome' into a i18n for translations
box := gui.ShowTextBox(gw, text, splashClick, "Welcome")
gui.ShowTextBox(box, text, splashClick, "Welcome")
// gui.ShowTextBox(hardXbox, text, splashClick, "Welcome")
gui.HorizontalBreak(box)
gui.NewLabel(box, "jcarr test2")
if runtime.GOOS == "linux" {
gui.NewLabel(box,"OS: Linux")