diff options
| author | Jeff Carr <[email protected]> | 2019-05-29 11:48:32 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-29 11:48:32 -0700 |
| commit | 73804529267500c49f6321d2fb33c028c2c2fbef (patch) | |
| tree | 493d340e8ab90f79931599f5ce54d7b2a0731e50 /gui.go | |
| parent | d3819ea331dc12cb142b0a825f5e27b4a7441a53 (diff) | |
more dereference improvements
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -131,7 +131,7 @@ func mouseClick(b *ButtonMap) { log.Println("\tgui.mouseClick() START b.Action =", b.Action) if (b.Action == "createAddVmBox") { log.Println("\tgui.mouseClick() createAddVmBox for b =", b) - createAddVmBox(Data.cloudTab, "Create New Virtual Machine", b) + createAddVmBox(window1.T, "Create New Virtual Machine", b) return } /* @@ -140,7 +140,7 @@ func mouseClick(b *ButtonMap) { if (Data.Debug) { go ui.Main(ShowVM) } else { - CreateVmBox(Data.cloudTab, b.VM) + CreateVmBox(window1.T, b.VM) } } */ @@ -215,7 +215,7 @@ func CreateButton(a *pb.Account, vm *pb.Event_VM, var newmap ButtonMap newmap.B = newB - newmap.T = Data.cloudTab + newmap.T = window1.T newmap.Account = a newmap.VM = vm newmap.Action = action @@ -237,7 +237,7 @@ func CreateFontButton(action string) *ButtonMap { newB.OnChanged(func (*ui.FontButton) { log.Println("FontButton.OnChanged() START mouseClick(&newBM)", &newBM) - // mouseClick(&newBM) + mouseClick(&newBM) }) return &newBM } |
