correct initial hidden state
This commit is contained in:
parent
0a70e64ff0
commit
c39117d132
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue