implement QUIT and saving new account info to the config file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0602047f56
commit
3eaa1bf85e
4
main.go
4
main.go
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue