have the splash screen work again

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-27 18:03:21 -07:00
parent 9924d6eddf
commit ef198702d0
1 changed files with 5 additions and 4 deletions

View File

@ -172,10 +172,6 @@ func mainMouseClick(b *gui.ButtonMap) {
log.Println("\tmainMouseClick() setting current account = ", b.Account.Nick)
}
if (b.Action == "AREA") {
gui.Data.State = "splash"
gui.Data.State = "account1"
// gui.ShowAccountQuestionTab(0, b.B)
gui.ShowAccountQuestionTab()
if (config == nil) {
log.Println("gui.State = splash BUT SOMETHING HAS GONE VERY WRONG")
log.Println("gui.State = splash BUT SOMETHING HAS GONE VERY WRONG")
@ -191,6 +187,11 @@ func mainMouseClick(b *gui.ButtonMap) {
log.Println("THIS IS LAME. CONFIG FILE MADE NULL ACCOUNTS key =", key)
}
}
if (gui.Data.State == "splash") {
gui.ShowAccountQuestionTab()
gui.Data.State = "account1"
return
}
if (gui.Data.State == "main") {
gui.ShowMainTab()
gui.Data.State = "done"