Skip to content

Commit

Permalink
Do not remove render of controllers not in diagram controller
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 23, 2024
1 parent bbdac18 commit a1a861b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions repository/OpenPonk-Core/OPController.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ OPController >> removeController [
self
removeDependentControllers;
internalUnsubscribeFrom: m ].
self removeFromDiagramController.
self removeRender
self removeRender.
self removeFromDiagramController
]

{ #category : 'destruction' }
Expand Down
10 changes: 5 additions & 5 deletions repository/OpenPonk-Spec/OPSelectionTool.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ OPSelectionTool >> select [
OPSelectionTool >> selectedControllers: aCollectionOfControllers [

| originalFigures newFigures |
originalFigures := selectedControllers collect: #roassalShape.
originalFigures := selectedControllers
select: #isRendered
thenCollect: #roassalShape.
newFigures := aCollectionOfControllers collect: #roassalShape.
originalFigures , newFigures
detect: #isSelectable
ifFound: [ :fig |
(fig propertyAt: OPRSSelectable) doHighlightShapes: newFigures ].
originalFigures , newFigures detect: #isSelectable ifFound: [ :fig |
(fig propertyAt: OPRSSelectable) doHighlightShapes: newFigures ].
selectedControllers := aCollectionOfControllers.
self editor openFormOn: (aCollectionOfControllers size = 1
ifTrue: [ aCollectionOfControllers anyOne ]
Expand Down

0 comments on commit a1a861b

Please sign in to comment.