use InsertAt() instead of Append()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-22 17:20:53 -07:00
parent 3367793ea5
commit 88040fe6fa
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func watchGUI() {
if (state == "splash") { if (state == "splash") {
log.Println("Display the splash box") log.Println("Display the splash box")
smallBox = account1.AddAccountBox(nil, splashClose) smallBox = account1.AddAccountBox(nil, splashClose)
cloudTab.Append("Intro", smallBox) cloudTab.InsertAt("Intro", 1, smallBox)
cloudTab.SetMargined(0, true) cloudTab.SetMargined(0, true)
// newbox.SetPadded(true) // newbox.SetPadded(true)
state = "done" state = "done"
@ -79,7 +79,7 @@ func watchGUI() {
func makeCloudWindow() { func makeCloudWindow() {
cloudWindow := ui.NewWindow("", 640, 480, true) cloudWindow := ui.NewWindow("", 640, 480, true)
cloudWindow.SetBorderless(true) // cloudWindow.SetBorderless(true)
cloudWindow.OnClosing(func(*ui.Window) bool { cloudWindow.OnClosing(func(*ui.Window) bool {
ui.Quit() ui.Quit()
return true return true