diff options
| author | Jeff Carr <[email protected]> | 2019-06-02 15:49:52 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-02 15:49:52 -0700 |
| commit | 8967c1494c9611330782915dbf4d54f29887d135 (patch) | |
| tree | 93fb34b5c3ce73567172dc55ee273da977e9aa03 /button.go | |
| parent | d6cc47ab94bf294b69116f9479b49f0302bfc7b5 (diff) | |
more deletions of old stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -21,7 +21,7 @@ import pb "git.wit.com/wit/witProtobuf" func defaultButtonClick(button *ui.Button) { log.Println("gui.defaultButtonClick() LOOK FOR BUTTON button =", button) for key, foo := range Data.AllButtons { - if (Data.Debug) { + if (Config.Debug) { log.Println("gui.defaultButtonClick() Data.AllButtons =", key, foo) // spew.Dump(foo) } @@ -32,7 +32,7 @@ func defaultButtonClick(button *ui.Button) { } } log.Println("\tgui.defaultButtonClick() ERROR: BUTTON NOT FOUND") - if (Data.Debug) { + if (Config.Debug) { panic("gui.defaultButtonClick() ERROR: UNMAPPED ui.Button") } } @@ -65,7 +65,6 @@ func CreateButton(box *GuiBox, a *pb.Account, vm *pb.Event_VM, name string, acti newB.Account = a newB.VM = vm newB.Box = box -// newB.GW = box.Window newB.Action = action newB.Custom = custom Data.AllButtons = append(Data.AllButtons, newB) |
