summaryrefslogtreecommitdiff
path: root/tabWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-22 20:03:17 -0700
committerJeff Carr <[email protected]>2019-05-22 20:03:17 -0700
commit23f110b5a271ea6b300536cc5189635f42c40b96 (patch)
tree3bc523e5019c36a41cda475d8fccf02e8e55bc4f /tabWindow.go
parent72c316dc990ca42faa23704ccf924ed0abd4e2c2 (diff)
goes to the 'add account' tab now
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tabWindow.go')
-rw-r--r--tabWindow.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/tabWindow.go b/tabWindow.go
index 876944b..5543e8e 100644
--- a/tabWindow.go
+++ b/tabWindow.go
@@ -14,17 +14,6 @@ var cloudBox *ui.Box
var smallBox *ui.Box
var state string
-func splashClose(a int, b string) {
- log.Println("GOT splashClose(a,b) =", a, b)
-
- log.Println("cloudBox Delete(0) START")
- cloudBox.Delete(0)
- log.Println("smallBox.Hide() START")
- smallBox.Hide()
-
- state = "kill"
-}
-
func buttonClick(i int, s string) {
log.Println("gui.buttonClick() i, s =", i, s)
log.Println("Figure out what to do here")
@@ -37,14 +26,25 @@ func buttonClick(i int, s string) {
}
}
+func ShowAccountQuestionTab() {
+ cloudTab.Delete(0)
+
+ log.Println("Sleep(1000)")
+ time.Sleep(1000 * time.Millisecond)
+
+ smallBox = AddAccountQuestionBox(nil, buttonClick)
+ cloudTab.InsertAt("New Account?", 0, smallBox)
+ cloudTab.SetMargined(0, true)
+}
+
func ShowAccountTab() {
cloudTab.Delete(0)
log.Println("Sleep(1000)")
time.Sleep(1000 * time.Millisecond)
- smallBox = AddAccountBox(nil, splashClose)
- cloudTab.InsertAt("Intro", 0, smallBox)
+ smallBox = AddAccountBox(buttonClick)
+ cloudTab.InsertAt("Add Account", 0, smallBox)
cloudTab.SetMargined(0, true)
}
@@ -74,5 +74,5 @@ func makeCloudWindow() {
cloudTab.SetMargined(0, true)
Data.cloudWindow.Show()
- Data.State = "splash done"
+ Data.State = "splash"
}