From e6d49b94ed17442302124c04dc4878943ca23b9b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 26 May 2019 14:03:20 -0700 Subject: [PATCH] pass 'ADD' to main application code Signed-off-by: Jeff Carr --- gui.go | 3 +++ mainCloudBox.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gui.go b/gui.go index e68799d..7b3a3fa 100644 --- a/gui.go +++ b/gui.go @@ -134,6 +134,9 @@ func mouseClick(b *ButtonMap) { createAddVmBox(Data.cloudTab, "Create New Virtual Machine") return } + if (b.Action == "ADD") { + log.Println("\tgui.mouseClick() SHOULD ADD VM HERE?") + } } if (Data.MouseClick == nil) { diff --git a/mainCloudBox.go b/mainCloudBox.go index 1b1dade..784890f 100644 --- a/mainCloudBox.go +++ b/mainCloudBox.go @@ -366,8 +366,8 @@ func createAddVmBox(tab *ui.Tab, name string) { hboxButtons.SetPadded(true) vbox.Append(hboxButtons, false) - hboxButtons.Append(CreateButton(nil, nil, "Add Virtual Machine","createAddVmBox", nil), false) - hboxButtons.Append(CreateButton(nil, nil, "Cancel", "CLOSE", nil), false) + hboxButtons.Append(CreateButton(nil, nil, "Add Virtual Machine","ADD", nil), false) + hboxButtons.Append(CreateButton(nil, nil, "Cancel", "CLOSE", nil), false) tab.Append(name, vbox) tab.SetMargined(0, true)