diff options
| author | Jeff Carr <[email protected]> | 2019-05-26 14:47:30 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-26 14:47:30 -0700 |
| commit | 59629136af4b87dffc50d06144627a19fc5536e0 (patch) | |
| tree | ffc4b0d6ee39322d66bd865c60a250c4c68794e2 /gui.go | |
| parent | 80608e070dd16636780b40a8061ae6ec41e9b1f7 (diff) | |
clean up more mouse click handling. Almost finished.
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -134,6 +134,14 @@ func mouseClick(b *ButtonMap) { createAddVmBox(Data.cloudTab, "Create New Virtual Machine") return } + if (b.Action == "SHOW VM") { + Data.CurrentVM = b.VM + if (Data.Debug) { + go ui.Main(ShowVM) + } else { + createVmBox(Data.cloudTab, b.VM) + } + } if (b.Action == "ADD") { log.Println("\tgui.mouseClick() SHOULD ADD VM HERE?") } @@ -194,7 +202,6 @@ func CreateButton(a *pb.Account, vm *pb.Event_VM, newmap.VM = vm newmap.Action = action newmap.custom = custom -// newmap.aTab = Data.CurrentTab Data.AllButtons = append(Data.AllButtons, newmap) return newB |
