more cleanups

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-31 09:01:32 -07:00
parent 8e88ae634f
commit f70f743b1b
3 changed files with 7 additions and 5 deletions

View File

@ -47,7 +47,7 @@ update:
config-make-readable:
cat ~/.config/cloud-control-panel.json |jq -r --tab
config-default-config:
config-default-config: config-delete
echo loading the test config
./cloud-control-panel --defaultconfig

View File

@ -28,7 +28,7 @@ func main() {
i += 1
c.Width = int32(400 + 50 * i)
c.Hostname = fmt.Sprintf("splash %d", i)
StartNewWindow(c, false, "BLAH")
StartNewWindow(c, true, "BLAH")
i += 1
c.Width = int32(400 + 50 * i)
@ -50,10 +50,12 @@ func main() {
func StartNewWindow(c *pb.Config, bg bool, action string) *gui.GuiWindow {
log.Println("InitNewWindow() Create a new window")
var newGuiWindow *gui.GuiWindow
newGuiWindow = new(gui.GuiWindow)
newGuiWindow.C = c
/*
ui.OnShouldQuit(func() bool {
// mouseClick(&newBM)

View File

@ -177,9 +177,9 @@ func mainMouseClick(b *gui.GuiButton) {
log.Println("\tmainMouseClick() setting current account = ", b.Account.Nick)
}
if (b.Action == "NEWTEXT") {
wm.AH.UiAttrstr = getNEWTEXT()
log.Println("AH.UiAttrstr = ", wm.AH.UiAttrstr)
wm.AH.UiArea.QueueRedrawAll()
wm.Area.UiAttrstr = getNEWTEXT()
log.Println("Area.UiAttrstr = ", wm.Area.UiAttrstr)
wm.Area.UiArea.QueueRedrawAll()
} else if (b.Action == "AREA") {
if (config == nil) {
log.Println("gui.State = splash BUT SOMETHING HAS GONE VERY WRONG")