Skip to content

Conversation

@RobertGlobant20
Copy link
Contributor

Purpose

WebView2 was crashing when opening the OpenFile Dialog or the OpenTemplate Dialog, it was due that we were not using an async method for opening the file/template. Then I added an async method and will be called by the HomeApp component.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

WebView2 was crashing when opening the OpenFile Dialog

Reviewers

@QilongTang

FYIs

@reddyashish

WebView2 was crashing when opening the OpenFile Dialog or the OpenTemplate Dialog, it was due that we were not using an async method for opening the file/template.
Then I added an async method and will be called by the HomeApp component.
Copy link

@github-actions github-actions bot left a 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-7139

@RobertGlobant20
Copy link
Contributor Author

GIF showing that now WebView2 doesn't crash.
78XtPfVeGJ

@QilongTang QilongTang added this to the 3.2.2 milestone Jun 28, 2024
I was missing to implement the same fix for the next functionalities that also open a File OpenDialog from WebView2:
- Open a Template (shortcut Ctrl + T)
- Open (shortcut Ctrl + O)
Finally I modified the functionality for using Commands instead of calling the method directly.
Updating call to use a Dispatcher
@QilongTang
Copy link
Contributor

Hi @RobertGlobant20 Notice the first PR check failed? Because you have added new public functions, you need to modify the file to add them to pass API break analysis

Updating the public API so we won't get a API Break check.
Updating the public API so we won't get a API Break check.
@github-actions
Copy link

github-actions bot commented Jul 1, 2024

UI Smoke Tests

Test: success. 11 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

Dynamo.ViewModels.DynamoViewModel.ShowOpenDialogAndOpenResultCommand.set -> void
Dynamo.ViewModels.DynamoViewModel.ShowOpenTemplateDialogCommand.get -> Dynamo.UI.Commands.DelegateCommand
Dynamo.ViewModels.DynamoViewModel.ShowOpenTemplateDialogCommand.set -> void
Dynamo.ViewModels.DynamoViewModel.ShowOpenDialogAndOpenResultAsyncCommand.get -> Dynamo.UI.Commands.DelegateCommand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space included?

@QilongTang QilongTang merged commit 53ec381 into DynamoDS:master Jul 2, 2024
QilongTang added a commit that referenced this pull request Jul 2, 2024
Co-authored-by: pinzart90 <46732933+pinzart90@users.noreply.github.com>
Co-authored-by: Roberto T <61755417+RobertGlobant20@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants