diff options
| author | Jeff Carr <[email protected]> | 2019-05-30 00:51:59 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-30 00:51:59 -0700 |
| commit | bcd3d85b793e6e19b653fb910d960d017c1fac70 (patch) | |
| tree | f33879b60f83eab78daacf5074c28cf3036eb71e /splash.go | |
| parent | 5b25c0a80b2183c66e85ed437f1fb3b7409933b1 (diff) | |
more work on stability
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) |
