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 +}