Skip to content
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

Component retention across projects #141

Open
Nielswps opened this issue Feb 27, 2023 · 0 comments
Open

Component retention across projects #141

Nielswps opened this issue Feb 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Nielswps
Copy link
Contributor

Nielswps commented Feb 27, 2023

Components are retained across projects when the split canvas view is used. An example can be seen below:

comp_retention

How to recreate

  1. Open GUI
  2. Press the View->Split canvas option
  3. Set a component as the active component in one of the views
  4. Open another project (either an existing or a new one)
  5. Press the View->Split canvas option again
  6. See that the component previously set as the active component reappears in this unconnected project

Possible cause
I personally think that this issue is due to the canvas not being re-initialized/properly cleared when a new project is open.

A good solution would be to completely re-initialize this part of the UI when a new project is opened. This is probably best to do AFTER the simulation functionality is merged in (see #82 ), as it was suggested to separate the editor and simulator in two separate scenes/stages (see #121 ).

Having this separation would make it easy to ensure that all the elements of the previous project are removed from memory.

@Nielswps Nielswps added the bug Something isn't working label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant