destroy works on the Demo window

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-12 19:13:51 -07:00
parent f97231d4f7
commit a28006c1e7
1 changed files with 7 additions and 0 deletions

View File

@ -38,3 +38,10 @@ func SetupDemoUI() {
demowin.Show() demowin.Show()
} }
func CloseDemoUI() {
if demowin != nil {
demowin.Destroy()
}
demowin = nil
}