Skip to content

Commit

Permalink
Merge pull request #1447 from Ducasse/reduceUIManagerDependencies
Browse files Browse the repository at this point in the history
One less + automatic rewriting
  • Loading branch information
Ducasse authored Sep 6, 2023
2 parents ff226d2 + 1c7be04 commit 810c176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Spec2-Core/SpPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1002,9 +1002,10 @@ SpPresenter >> whenWindowChanged: aBlock [

self flag: #TODO. "This is here for backwards compatibility (you can have same
functionality in #initializeWindow:"
self announcer
when: SpWindowBuilt
self announcer
when: SpWindowBuilt
do: [ :ann | aBlock cull: ann model ]
for: self
]

{ #category : #TOREMOVE }
Expand Down
2 changes: 1 addition & 1 deletion src/Spec2-Examples/SpListSelectionPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ SpListSelectionPresenter >> updateText [
indexes := indexes joinUsing: '; '.
items := listModel selectedItems collect: [ :i | i printString ].
items := items sort joinUsing: '; '.
UIManager default
self
defer: [ textModel1 text: indexes.
textModel2 text: items ] ] fork
]

0 comments on commit 810c176

Please sign in to comment.