diff options
| author | Jeff Carr <[email protected]> | 2019-05-26 14:03:20 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-26 14:03:20 -0700 |
| commit | e6d49b94ed17442302124c04dc4878943ca23b9b (patch) | |
| tree | 387a47009c2de74adea4140b76ac48ed2878f174 | |
| parent | b57ed75580263735943d45d24a430611aa3771ca (diff) | |
pass 'ADD' to main application code
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | gui.go | 3 | ||||
| -rw-r--r-- | mainCloudBox.go | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -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) |
