Use display property to detect when result dialog is open