From a28006c1e7ab2feb1ca0300aaf694ac4f11b12fd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 May 2019 19:13:51 -0700 Subject: [PATCH] destroy works on the Demo window Signed-off-by: Jeff Carr --- demo.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/demo.go b/demo.go index 3a789b3..a9c0761 100644 --- a/demo.go +++ b/demo.go @@ -38,3 +38,10 @@ func SetupDemoUI() { demowin.Show() } + +func CloseDemoUI() { + if demowin != nil { + demowin.Destroy() + } + demowin = nil +}