start honoring the debugging flag for more output

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-23 13:13:42 -07:00
parent 7bcdefb94a
commit f283a656dc
2 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,14 @@ func makeSplashArea(custom func(int, string)) *ui.Area {
makeAttributedString()
Data.splashArea = ui.NewArea(myAH)
spew.Dump(Data.splashArea)
if (Data.Debug) {
spew.Dump(Data.splashArea)
log.Println("DEBUGGING", Data.Debug)
} else {
log.Println("NOT DEBUGGING", Data.Debug)
log.Println("NOT DEBUGGING", Data.Debug)
log.Println("NOT DEBUGGING", Data.Debug)
}
return Data.splashArea
}

1
gui.go
View File

@ -28,6 +28,7 @@ type GuiDataStructure struct {
GitCommit string
GoVersion string
HomeDir string
Debug bool
// account entry textboxes
AccNick string