summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-29 11:48:32 -0700
committerJeff Carr <[email protected]>2019-05-29 11:48:32 -0700
commit73804529267500c49f6321d2fb33c028c2c2fbef (patch)
tree493d340e8ab90f79931599f5ce54d7b2a0731e50 /debug.go
parentd3819ea331dc12cb142b0a825f5e27b4a7441a53 (diff)
more dereference improvements
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/debug.go b/debug.go
index d1e55a4..fb9a7ff 100644
--- a/debug.go
+++ b/debug.go
@@ -26,13 +26,13 @@ func setupCloudUI() {
return true
})
- Data.cloudTab = ui.NewTab()
- Data.cloudWindow.SetChild(Data.cloudTab)
+ window1.T = ui.NewTab()
+ Data.cloudWindow.SetChild(window1.T)
Data.cloudWindow.SetMargined(true)
Data.tabcount = 0
- Data.cloudTab.Append("Cloud Info", makeCloudInfoBox())
- Data.cloudTab.SetMargined(Data.tabcount, true)
+ window1.T.Append("Cloud Info", makeCloudInfoBox())
+ window1.T.SetMargined(Data.tabcount, true)
Data.cloudWindow.Show()
}
@@ -51,7 +51,7 @@ func addTableTab() {
log.Println("Sleep for 2 seconds, then try to add new tabs")
time.Sleep(1 * 1000 * 1000 * 1000)
- AddTableTab(Data.cloudTab, 1, "test seven", 7, parts, nil)
+ AddTableTab(window1.T, 1, "test seven", 7, parts, nil)
}
func addDebuggingButtons(vbox *ui.Box) {