summaryrefslogtreecommitdiff
path: root/splash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-30 00:51:59 -0700
committerJeff Carr <[email protected]>2019-05-30 00:51:59 -0700
commitbcd3d85b793e6e19b653fb910d960d017c1fac70 (patch)
treef33879b60f83eab78daacf5074c28cf3036eb71e /splash.go
parent5b25c0a80b2183c66e85ed437f1fb3b7409933b1 (diff)
more work on stability
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
-rw-r--r--splash.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/splash.go b/splash.go
index 168286a..18796df 100644
--- a/splash.go
+++ b/splash.go
@@ -11,7 +11,7 @@ import "runtime"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
-func ShowSplashBox(wm *WindowMap, i int, newText *ui.AttributedString) *ui.Box {
+func ShowSplashBox(wm *WindowMap, newText *ui.AttributedString) *ui.Box {
log.Println("ShowSplashBox() START")
log.Println("ShowSplashBox() START wm =", wm)
if (wm == nil) {
@@ -23,12 +23,12 @@ func ShowSplashBox(wm *WindowMap, i int, newText *ui.AttributedString) *ui.Box {
newbox.SetPadded(true)
// initialize the AreaHandler{}
- Data.Windows[i].AH = new(AreaHandler)
- Data.Windows[i].AH.WM = wm
- Data.Windows[i].AH.Attrstr = newText
- makeSplashArea(Data.Windows[i].AH)
+ wm.AH = new(AreaHandler)
+ wm.AH.WM = wm
+ wm.AH.Attrstr = newText
+ makeSplashArea(wm, wm.AH)
- newbox.Append(Data.Windows[i].AH.Area, true)
+ newbox.Append(wm.AH.Area, true)
if runtime.GOOS == "linux" {
newbox.Append(ui.NewLabel("OS: Linux"), false)