correct initial hidden state

This commit is contained in:
Jeff Carr 2024-02-12 15:22:17 -06:00
parent 0a70e64ff0
commit c39117d132
1 changed files with 5 additions and 3 deletions

View File

@ -26,6 +26,7 @@ func RawBasicWindow(title string) *BasicWindow {
w = &BasicWindow{
title: title,
vertical: false,
hidden: true,
}
log.Log(GADGETS, "NewBasicWindow() END")
@ -167,10 +168,10 @@ func (w *BasicWindow) Horizontal() {
log.Log(GADGETS, "BasicWindow() Horizontal() END w.vertical =", w.vertical, w.title)
}
func (w *BasicWindow) Make() {
func (w *BasicWindow) Make() *BasicWindow {
if w.win != nil {
log.Log(GADGETS, "BasicWindow.Make() window was already created")
return
log.Warn("BasicWindow.Make() window was already created")
return w
}
// w.win = w.parent.RawWindow(w.title)
w.win = gui.RawWindow(w.title)
@ -197,6 +198,7 @@ func (w *BasicWindow) Make() {
w.win.SetVisable(false)
w.ready = true
return w
}
func (w *BasicWindow) TestDraw() {