diff options
| author | Jeff Carr <[email protected]> | 2019-05-29 11:25:25 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-29 11:25:25 -0700 |
| commit | 69e42973663c826ad8143e64d951ba6eaf63d995 (patch) | |
| tree | 4dbe432259b14aca79f6b64caf9adb0697dde806 /mainCloudBox.go | |
| parent | 5bc0e15b3d163d3b2eadb1e25654ed0147b8f880 (diff) | |
remove the myAH stand alone variable
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'mainCloudBox.go')
| -rw-r--r-- | mainCloudBox.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mainCloudBox.go b/mainCloudBox.go index 2c0c46b..84b8e32 100644 --- a/mainCloudBox.go +++ b/mainCloudBox.go @@ -215,16 +215,17 @@ func makeCloudWindow() { // cloudWindow.SetBorderless(true) // create a 'fake' button entry for the mouse clicks - var newButtonMap ButtonMap - newButtonMap.Action = "QUIT" - Data.AllButtons = append(Data.AllButtons, newButtonMap) + var newBM ButtonMap + newBM.Action = "QUIT" + newBM.W = Data.cloudWindow + Data.AllButtons = append(Data.AllButtons, newBM) Data.cloudWindow.OnClosing(func(*ui.Window) bool { - mouseClick(&newButtonMap) + mouseClick(&newBM) return true }) ui.OnShouldQuit(func() bool { - mouseClick(&newButtonMap) + mouseClick(&newBM) return true }) @@ -232,7 +233,8 @@ func makeCloudWindow() { Data.cloudWindow.SetChild(Data.cloudTab) Data.cloudWindow.SetMargined(true) - Data.cloudBox = ShowSplashBox() + text := makeAttributedString() + Data.cloudBox = ShowSplashBox(text) Data.cloudTab.Append("WIT Splash", Data.cloudBox) Data.cloudTab.SetMargined(0, true) |
