summaryrefslogtreecommitdiff
path: root/splash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-29 11:25:25 -0700
committerJeff Carr <[email protected]>2019-05-29 11:25:25 -0700
commit69e42973663c826ad8143e64d951ba6eaf63d995 (patch)
tree4dbe432259b14aca79f6b64caf9adb0697dde806 /splash.go
parent5bc0e15b3d163d3b2eadb1e25654ed0147b8f880 (diff)
remove the myAH stand alone variable
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
-rw-r--r--splash.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/splash.go b/splash.go
index 96a360b..504bd8e 100644
--- a/splash.go
+++ b/splash.go
@@ -10,17 +10,16 @@ import "runtime"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
-func ShowSplashBox() *ui.Box {
+func ShowSplashBox(newText *ui.AttributedString) *ui.Box {
newbox := ui.NewVerticalBox()
newbox.SetPadded(true)
// initialize the AreaHandler{}
- myAH = new(AreaHandler)
- newText := makeAttributedString()
- myAH.Attrstr = newText
- makeSplashArea(myAH)
+ Data.myAH = new(AreaHandler)
+ Data.myAH.Attrstr = newText
+ makeSplashArea(Data.myAH)
- newbox.Append(myAH.Area, true)
+ newbox.Append(Data.myAH.Area, true)
if runtime.GOOS == "linux" {
newbox.Append(ui.NewLabel("OS: Linux"), false)