Skip to content

Increasing the robustness of the Remote Console backend port handling #117

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

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

robertpatrick
Copy link
Member

@robertpatrick robertpatrick commented Mar 8, 2022

This PR makes several changes to the way the backend port is communicated to the BrowserWindows:

  1. When the backend starts, it pushes the set-wrc-backend-port event to all open BrowserWindows.
  2. For every new BrowserWindow, we push the current backend port value to the window during the IPC handler for window-is-ready.
  3. When the backend process exits, it pushed the set-wrc-backend-port event to all open BrowserWindows to set the window's backend port to undefined.

In addition, this PR also short-circuits the deactivate/create process for the wdt-model-designer's data provider when the model changes due to receiving the changesAutoDownloaded callback. This should make it so that the only time the deactivate/create cycle is performed when the model changes due to an action cause by a menu invocation (or the Prepare Model button).

@robertpatrick robertpatrick merged commit 87c9c23 into develop Mar 8, 2022
@robertpatrick robertpatrick deleted the rc-port-all-windows branch June 29, 2022 22:02
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.

2 participants