pass 'ADD' to main application code
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
b57ed75580
commit
e6d49b94ed
3
gui.go
3
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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue