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)