Update Window.Destroy to only hide window if visible

This commit is contained in:
Noah 2023-12-09 15:00:25 -08:00
parent e912e2bd03
commit 20a9d7bdff

View File

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