move some logic back here

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-31 23:45:28 -07:00
parent 3b746c5d72
commit b7445ffea4
2 changed files with 2 additions and 5 deletions

View File

@ -394,7 +394,7 @@ func mainMouseClick(b *gui.GuiButton) {
// TODO: make sure login worked & the account really has zero VMs
// if (count != 0) {
name := "Virtual Machines (" + b.Account.Nick + ")"
mh := AddVmsTab(gw, name, count, b.Account)
mh := addVmsTab(gw, name, count, b.Account)
ReadReceivedData(currentMessage, mh, b.GW)
// }
currentMessage = nil

5
vm.go
View File

@ -3,9 +3,6 @@ package main
// import "log"
// import "fmt"
// import "github.com/andlabs/ui"
// import _ "github.com/andlabs/ui/winmanifest"
import "git.wit.com/wit/gui"
import pb "git.wit.com/wit/witProtobuf"
@ -20,7 +17,7 @@ import pb "git.wit.com/wit/witProtobuf"
// which could be anything since TEXTCOLOR, TEXT, BG, etc
// fields use between 1 and 3 values internally
//
func AddVmsTab(gw *gui.GuiWindow, name string, count int, a *pb.Account) *gui.TableData {
func addVmsTab(gw *gui.GuiWindow, name string, count int, a *pb.Account) *gui.TableData {
var parts []gui.TableColumnData
human := 0