parent
ae984fd85a
commit
c5862d8605
|
@ -46,6 +46,7 @@ func (w *BasicWindow) Hide() {
|
|||
if !w.Ready() {
|
||||
return
|
||||
}
|
||||
log.Warn("BasicWindow.Hide() here")
|
||||
w.win.Hide()
|
||||
w.hidden = true
|
||||
return
|
||||
|
@ -73,6 +74,26 @@ func (w *BasicWindow) Title(title string) {
|
|||
return
|
||||
}
|
||||
|
||||
// sets this window to run os.Exit()
|
||||
func (w *BasicWindow) StandardClose() {
|
||||
if !w.Initialized() {
|
||||
return
|
||||
}
|
||||
w.win.Custom = w.win.StandardClose
|
||||
/*
|
||||
log.Warn("BasicWindow.Custom() closed. TODO: handle this", w.title)
|
||||
log.Warn("BasicWindow.Custom() closed. handled properly?", w.title)
|
||||
if w.Custom != nil {
|
||||
log.Warn("BasicWindow.Custom() HAS CUSTOM")
|
||||
w.Custom()
|
||||
return
|
||||
}
|
||||
w.win.StandardExit()
|
||||
}
|
||||
*/
|
||||
return
|
||||
}
|
||||
|
||||
// sets this window to run os.Exit()
|
||||
func (w *BasicWindow) StandardExit() {
|
||||
if !w.Ready() {
|
||||
|
@ -82,7 +103,9 @@ func (w *BasicWindow) StandardExit() {
|
|||
log.Warn("BasicWindow.Custom() closed. TODO: handle this", w.title)
|
||||
log.Warn("BasicWindow.Custom() closed. handled properly?", w.title)
|
||||
if w.Custom != nil {
|
||||
log.Warn("BasicWindow.Custom() HAS CUSTOM")
|
||||
w.Custom()
|
||||
return
|
||||
}
|
||||
w.win.StandardExit()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue