-
Notifications
You must be signed in to change notification settings - Fork 636
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
DYN-7523: editwindow fix #15615
DYN-7523: editwindow fix #15615
Conversation
- removed anonymous subscription - immediately unsubscribe after calling the event to prevent leaking - removed redundant test code
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7523
} | ||
|
||
// Centralize the window correctly after it is rendered | ||
private void OnContentRendered(object sender, EventArgs e) |
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.
This is subscribed in the editwindow fn but when is it being called?
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.
This one is the very last event to be called when a Window
is placed. It is called even after Loaded
. I use it to re-centralize the window as there is something else affecting it externally, which I cannot catch.
UI Smoke TestsTest: success. 11 passed, 0 failed. |
(cherry picked from commit 7f40772)
Purpose
This is a follow up on #15583 which was recently merged. I am addressing potential leak introduced in the previous PR by introducing anonymous event subscription. The fix is mainly making these explicit, and unsubscribing immediately after the first call. This should ensure no unsubscribed events remain after the window is closed.
Also, removed a small bit of unnecessary test code that was accidentally left over.
Tagging this PR with the old Jira issue.
UI Changes
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@reddyashish
@zeusongit
@QilongTang
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of