logindlg.go
func (d *LoginDialog) OnClose(fn func()) {
	WindowManager().BeginUpdate()
	defer WindowManager().EndUpdate()
	d.onClose = fn
}
func (d *LoginDialog) OnClose(fn func()) {
	WindowManager().BeginUpdate()
	defer WindowManager().EndUpdate()
	d.onClose = fn
}
func ( d * LoginDialog ) OnClose ( fn func ( ) ) { WindowManager ( ) . BeginUpdate ( ) defer WindowManager ( ) . EndUpdate ( ) d . onClose = fn }
// OnClose sets the callback that is called when the
// dialog is closed
OnClose sets the callback that is called when the dialog is closed