summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-26 17:28:34 -0700
committerJeff Carr <[email protected]>2019-05-26 17:28:34 -0700
commit58209fde5d2f88b6f43565cfc5e6f08d5190dc0f (patch)
tree50d61065247cab06f82ce81754b49f9474874d4e /gui.go
parent3bf115b56e75db0488a797f110c8717ff9a5a966 (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.go17
1 files changed, 10 insertions, 7 deletions
diff --git a/gui.go b/gui.go
index 9199eca..8b3b1e0 100644
--- a/gui.go
+++ b/gui.go
@@ -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
}