[#974] Add component edit window tab remembrance #1444
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

This PR fixes #974: Moving from component to component, configuration tab selected could open to the same tab.
The current behavior is this:
If a tab is selected the component config dialog of component 1, and you edit another component, component 2 (either by clicking component 2 while the edit dialog of component 1 is still open, or by first closing component 1's edit dialog, and then editing component 2):
If the previously selected tab of component 1 is also present for component 2 (e.g. both components have a ‘General’ tab or ‘Appearance’ tab), then that same tab is opened for component 2
If component 2 does not have the tab of component 1, the first tab of component 2 is selected (e.g. component 1 is a FinSet with the ‘Fin tabs’ tab selected, component 2 is a Body Tube, then the first tab of component 2 - ‘General’ - will be opened)
If a new component is added, the automatic dialog pop-up will always be opened in the first tab (e.g. ‘General’)
Demo:
Screen.Recording.2022-06-13.at.12.47.00.mp4