f5d140d10607f74bceb5e6503cb70a504d8e9104 — Chris Waldon 7 months ago 9b2e126
multiwindow: fix window close mechanism

This commit updates the multiwindow example to use the new
app.Window.Perform method to close windows instead of the
now-removed app.Window.Close method.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M multiwindow/log.go
M multiwindow/log.go => multiwindow/log.go +1 -1
@@ 71,7 71,7 @@ func (log *Log) Layout(w *Window, th *material.Theme, gtx layout.Context) {
	// This is here to demonstrate programmatic closing of a window,
	// however it's probably better to use OS close button instead.
	for log.close.Clicked() {

	layout.Flex{Axis: layout.Vertical}.Layout(gtx,