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 /splash.go | |
| parent | 5bc0e15b3d163d3b2eadb1e25654ed0147b8f880 (diff) | |
remove the myAH stand alone variable
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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) |
