Skip to content

Commit

Permalink
Simplified modelChanged code
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Nov 16, 2024
1 parent 24bd04b commit fb10f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion repository/OpenPonk-FSM/OPFsmStateController.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ OPFsmStateController >> buildEditorForm: aForm [
state: self model isFinal;
whenChangedDo: [ :newValue |
self model isFinal: newValue.
self diagramElement modelChanged ]
self modelChanged ]
]

{ #category : 'construction' }
Expand Down
4 changes: 2 additions & 2 deletions repository/OpenPonk-FSM/OPFsmStateControllerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ OPFsmStateControllerTest >> testFigureRefresh [
renderDiagramElement.
self assert: controller diagramElement modelElement name equals: ''.
controller model name: 'new name'.
controller diagramElement modelChanged.
controller modelChanged.
self assert:
(controller diagramElement canvas nodes anySatisfy: [ :any |
(controller diagramElement canvas nodes anySatisfy: [ :any |
(any isKindOf: RSLabel) and: [ any text = 'new name' ] ])
]

0 comments on commit fb10f3d

Please sign in to comment.