-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix - Complete window dialog task when dialog is hidden #18047
Conversation
You can test this PR using the following package version. |
Don't we also need to update "this window has child modal dialogs" state for dialog parent? |
Nvm, Owner is already set to null in Hide. |
@emmauss the fix looks good but a matching unit test should probably be added. Note: we already have a test |
Made Hide and IsVisible=false behave the same for all window types, i.e. they hide the window and not close it. Also updated tests. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
6156501
to
7a0a7bd
Compare
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What does the pull request do?
ShowDialog
as complete.What is the current behavior?
When a dialog window is shown, a task is return for user to wait on. This task is set to completed on
Close
, but not onHide
, even though the owner is set to null when hidden. This makes any thread waiting on the window to lock up.What is the updated/expected behavior with this PR?
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues