-
Notifications
You must be signed in to change notification settings - Fork 668
Keep Node AutoComplete popup hidden when window deactivated #13337
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
Conversation
|
Looks like there are a good amount of regressions, will look into this |
|
@mjkkirschner All regressions pass now, this is ready for a look |
| { | ||
| Application.Current.Deactivated += currentApplicationDeactivated; | ||
| Application.Current.Deactivated += CurrentApplicationDeactivated; | ||
| Application.Current.MainWindow.Closing += InCanvasSearchControl_Unloaded; |
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.
I kind of recall that Application is null in the context of Revit - what happens then?
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.
@mjkkirschner I think Application.Current would be null in testing and in the context of Revit, which is the purpose of the check above. Earlier the regressions failure were all about the null check so I had to fold this line in
| { | ||
| RequestShowInCanvasSearch(flags); | ||
| } | ||
| RequestShowInCanvasSearch?.Invoke(flags); |
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.
👍
mjkkirschner
left a comment
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.
a few comments, but overall looks good.
|
Addressed all comments, @mjkkirschner |
|
@QilongTang maybe it's just a fluke, but it looks like the tests timed out here? |
Not sure, last night the regressions all passed. I am re-running them |
|
@mjkkirschner After re-run the PR check, the regressions passed so I believe it is a fluke. Merging. |
* add nunit test adapter for 2022 (#13313) * add nunit test adapter for 2022 * update * Update Setup.cs * update * Update DynamoCore.csproj * Create System.Net.Http.dll * update * update Co-authored-by: pinzart <tiberiu.pinzariu@autodesk.com> * Filter Mouse Pressed Removed (#13319) - removed flashing white color on mouse pressed for the filter ui element * Fixing horizontal center (#13312) * Update Node AutoComplete Dialog Visuals (#13329) * Update Node AutoComplete Visuals * Reuse style from central location * Add editorconfig (#13233) * Dyn5272 (#13334) tests pass - merging this then will send cherry pick * Dyn 5159 import export preferences (#13301) * Import Export Settings * Info Icons * Indentation * Using Dynamo View Model reference * Moving the methods to the proper places according to their accessibility * Handling Generic Exceptions * updating the RaisePropertyChanged * Extracting the import extension file as a variable * Unique file name * Changing the access level * Various revisions * Cleaning vars * Adding Unit Test * Adding Comments and cleaning vars * Removing unnecessary methods * Refactoring to get the static fields automatically * Updating the Unit Test * checking new settings file * Adding validation info * Getting First Property with the same value * Updating valid TrustedLocations entries * move near clipping plane further away for more depth buffer precision. (#13338) passed here: merging. * Keep Node AutoComplete popup hidden when window deactivated (#13337) * Keep Node AutoComplete popup hidden when window deactivated * Add condition and null checks * comments Co-authored-by: pinzart90 <46732933+pinzart90@users.noreply.github.com> Co-authored-by: pinzart <tiberiu.pinzariu@autodesk.com> Co-authored-by: Deyan Nenov <dnenov@archilizer.com> Co-authored-by: jesusalvino <96534278+jesusalvino@users.noreply.github.com> Co-authored-by: Aaron (Qilong) <173288704@qq.com> Co-authored-by: Aabishkar KC <aabishkar@gmail.com>
Please Note:
DynamoRevitrepo will need to be cherry-picked into all the DynamoRevit Release branches that Dynamo supports. Contributors will be responsible for cherry-picking their reviewed commits to the other branches after aLGTMlabel is added to the PR.Purpose
Per https://jira.autodesk.com/browse/DYN-3209, @mjkkirschner or a lot of Dynamo developers have noticed that in-canvas search and Node AutoComplete popup remains open during debugging of Dynamo. This is due to a bug that hidding Dynamo window calling unloaded on these two popups. I changed the code to have the handler nolonger binding to
Unloadevent butMainWindow.Closingevent and setDynamoViewas mainwindow will make sure the event sequence is corrected. This PR also includes some small cleanup using pattern matching for the checks.Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Keep Node AutoComplete popup hidden when window deactivated
Reviewers
@DynamoDS/dynamo
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of