code: func (d *FileSelectDialog) OnClose(fn func()) {
  	WindowManager().BeginUpdate()
  	defer WindowManager().EndUpdate()
  	d.onClose = fn
  }
docs: // OnClose sets the callback that is called when the
  // dialog is closed