remove references to AccNick
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
89245aef3d
commit
d12549e314
10
main.go
10
main.go
|
@ -89,6 +89,12 @@ func main() {
|
|||
stuff, _ := marshaler.MarshalToString(pbC)
|
||||
log.Println(stuff)
|
||||
|
||||
for key, foo := range pbC.Accounts {
|
||||
log.Println("account = ", key, foo)
|
||||
}
|
||||
gui.Data.Config = pbC
|
||||
// onExit(nil)
|
||||
|
||||
// only test the socket code if no GUI
|
||||
if (config.String("nogui") == "true") {
|
||||
log.Println("Need to re-implement this")
|
||||
|
@ -156,7 +162,7 @@ func mainButtonClick(b *gui.ButtonMap) {
|
|||
log.Println("main() BACK IN CONTROL PANEL CODE (button b.Name =", b.Name, ")")
|
||||
log.Println("\tb.Name", b.Name)
|
||||
log.Println("\tb.Note", b.Note)
|
||||
log.Println("\tb.AccNick", b.AccNick)
|
||||
// log.Println("\tb.AccNick", b.AccNick)
|
||||
if (b.Note == "BACK") {
|
||||
gui.Data.State = "splash"
|
||||
} else if (b.Note == "QUIT") {
|
||||
|
@ -188,6 +194,7 @@ func mainButtonClick(b *gui.ButtonMap) {
|
|||
log.Println("FINISHED FULL STACK DUMP")
|
||||
} else if (b.Note == "ADD") {
|
||||
log.Println("\tSHOULD ADD ACCOUNT HERE")
|
||||
/*
|
||||
if (gui.Data.AccNick != "") {
|
||||
log.Println("\tADDING ACCOUNT HERE")
|
||||
log.Println("\tADDING ACCOUNT HERE")
|
||||
|
@ -199,6 +206,7 @@ func mainButtonClick(b *gui.ButtonMap) {
|
|||
config.Set("accounts." + gui.Data.AccNick + ".password", gui.Data.AccPass)
|
||||
config.Set("accounts." + gui.Data.AccNick + ".hostname", "v000185.testing.com.customers.wprod.wit.com")
|
||||
}
|
||||
*/
|
||||
} else if (b.Note == "LOGIN") {
|
||||
log.Println("\tTRIGGER LOGIN ACCOUNT")
|
||||
gui.Data.State = "SEND LOGIN"
|
||||
|
|
Loading…
Reference in New Issue