Update Window.Destroy to only hide window if visible

master
Noah 2023-12-09 15:00:25 -08:00
parent e912e2bd03
commit 20a9d7bdff
1 changed files with 3 additions and 1 deletions

View File

@ -412,5 +412,7 @@ func (w *Window) Present(e render.Engine, P render.Point) {
// Destroy hides the window.
func (w *Window) Destroy() {
w.Close()
if !w.Hidden() {
w.Close()
}
}