summaryrefslogtreecommitdiff
path: root/mainCloudBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-25 16:00:33 -0700
committerJeff Carr <[email protected]>2019-05-25 16:00:33 -0700
commit8fe85f0af271c8cbfa4e5735f7136923dab357f8 (patch)
treef48b4bfcbbd543410129409a5fd1abf900d14b25 /mainCloudBox.go
parent7b601a8e689ab4bc657f730f23c2c785b2fe7846 (diff)
pass the VM to the buttons in the VM tab
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'mainCloudBox.go')
-rw-r--r--mainCloudBox.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/mainCloudBox.go b/mainCloudBox.go
index b6f23e2..dd0842a 100644
--- a/mainCloudBox.go
+++ b/mainCloudBox.go
@@ -3,6 +3,7 @@ package gui
import "log"
import "time"
import "fmt"
+// import "os"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
@@ -335,6 +336,7 @@ func createVmBox(tab *ui.Tab, custom func(*ButtonMap), pbVM *pb.Event_VM) {
hboxButtons.SetPadded(true)
vbox.Append(hboxButtons, false)
+ log.Println("pbVM =", pbVM)
hboxButtons.Append(CreateButton(nil, pbVM, "Power On", "POWERON", custom), false)
hboxButtons.Append(CreateButton(nil, pbVM, "Power Off", "POWEROFF", custom), false)
hboxButtons.Append(CreateButton(nil, pbVM, "Destroy", "DESTROY", custom), false)