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:36 -07:00
parent 7570bf6e27
commit 1ad02a816e
1 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,12 @@ func makeCloudInfoBox() ui.Control {
})
vbox.Append(add4button, false)
add4abutton := ui.NewButton("Close Demo GUI")
add4abutton.OnClicked(func(*ui.Button) {
gui.CloseDemoUI()
})
vbox.Append(add4abutton, false)
// Send a protobuf Event over the WIT socket
add5button := ui.NewButton("Send protobuf to localhost")
add5button.OnClicked(func(*ui.Button) {