implement QUIT and saving new account info to the config file

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-23 11:03:32 -07:00
parent 0602047f56
commit 3eaa1bf85e
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,9 @@ func buttonClickNew(b *gui.ButtonMap) {
if (b.Note == "BACK") {
gui.Data.State = "splash"
}
if (b.Note == "QUIT") {
onExit()
}
if (b.Note == "ADD") {
log.Println("\tSHOULD ADD ACCOUNT HERE")
log.Println("\tSHOULD ADD ACCOUNT HERE")
@ -101,6 +104,7 @@ func buttonClickNew(b *gui.ButtonMap) {
log.Println("\tData.AccPass = ", gui.Data.AccPass)
config.Set("accounts." + gui.Data.AccNick + ".username", gui.Data.AccUser)
config.Set("accounts." + gui.Data.AccNick + ".password", gui.Data.AccPass)
config.Set("accounts." + gui.Data.AccNick + ".hostname", "v000185.testing.com.customers.wprod.wit.com")
}
if (b.Note == "BMATH") {
log.Println("\tTRIGGER BMATH HERE")