diff options
| author | Jeff Carr <[email protected]> | 2019-05-26 17:28:34 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-26 17:28:34 -0700 |
| commit | 58209fde5d2f88b6f43565cfc5e6f08d5190dc0f (patch) | |
| tree | 50d61065247cab06f82ce81754b49f9474874d4e /gui.go | |
| parent | 3bf115b56e75db0488a797f110c8717ff9a5a966 (diff) | |
experiement with 'show vm' as a window or a tab
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -134,14 +134,16 @@ 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) + CreateVmBox(Data.cloudTab, b.VM) } } + */ if (b.Action == "WINDOW CLOSE") { b.W.Hide() // TODO: fix this (seems to crash? maybe because we are in the button here?) @@ -203,12 +205,13 @@ func CreateButton(a *pb.Account, vm *pb.Event_VM, newB.OnClicked(defaultButtonClick) var newmap ButtonMap - newmap.B = newB - newmap.Account = a - newmap.VM = vm - newmap.Action = action - newmap.custom = custom - Data.AllButtons = append(Data.AllButtons, newmap) + newmap.B = newB + newmap.T = Data.cloudTab + newmap.Account = a + newmap.VM = vm + newmap.Action = action + newmap.custom = custom + Data.AllButtons = append(Data.AllButtons, newmap) return newB } |
