summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-26 02:19:09 -0700
committerJeff Carr <[email protected]>2019-05-26 02:19:09 -0700
commitb251151328f04bd35208e38b1680f79ecfb29935 (patch)
tree48bae99e2f8a57479839fdb57da2c0b8df27b151 /gui.go
parent458e0f71397857899c295f805521bce1fb065701 (diff)
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui.go b/gui.go
index f9744bf..2853dd6 100644
--- a/gui.go
+++ b/gui.go
@@ -122,10 +122,12 @@ func ErrorWindow(msg1 string, msg2 string) {
// defaultButtonClick() below when the button is found
// in the AllButtons %map
// TODO: clean up the text above
+// TODO: remove this all together going only to main()
func mouseClick(b *ButtonMap) {
- log.Println("gui.mouseClick() START b =", b)
-
- if (b != nil) {
+ if (b == nil) {
+ log.Println("gui.mouseClick() START b = nil")
+ } else {
+ log.Println("gui.mouseClick() START b.Action =", b.Action)
if (b.Action == "createAddVmBox") {
log.Println("gui.mouseClick() createAddVmBox for b =", b)
createAddVmBox(Data.cloudTab, "Create New Virtual Machine", mouseClick)