Skip to content

Fixed issue where selection did not update after clicking on shape#3090

Merged
breiler merged 2 commits intowinder:masterfrom
dnikodem84:FixShapeSelection
Apr 25, 2026
Merged

Fixed issue where selection did not update after clicking on shape#3090
breiler merged 2 commits intowinder:masterfrom
dnikodem84:FixShapeSelection

Conversation

@dnikodem84
Copy link
Copy Markdown
Contributor

Selection is only populated itself from SelectionListener events. But DesignerTopComponent.onSelectionEvent opens the settings pane via SwingUtilities.invokeLater, so SettingsTopComponent.componentOpened runs after the SelectionEvent has already been dispatched. A fresh SelectionSettingsPanel then registers as a listener with no way to learn about the just-selected shape, leaving the pane empty and disabled

Selection is only populated itself from SelectionListener events. But DesignerTopComponent.onSelectionEvent opens the settings pane via SwingUtilities.invokeLater, so SettingsTopComponent.componentOpened runs after the SelectionEvent has already been dispatched. A fresh SelectionSettingsPanel then  registers as a listener with no way to learn about the just-selected shape, leaving the pane empty and disabled
@dnikodem84
Copy link
Copy Markdown
Contributor Author

There appear to be issues with the "Shape settings" after i refreshed from main today. If you have any idea what the remaining issue is I can attempt to fix next week otherwise I might have to revert to an older version.

image

@dnikodem84
Copy link
Copy Markdown
Contributor Author

Todays commit has my fork properly loading the shape settings in the designer when launching from ./run_platform.sh

image

@breiler breiler merged commit 036e82e into winder:master Apr 25, 2026
1 check passed
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