diff --git a/src/Spec2-Commander2/CmUICommandDisplayStrategy.extension.st b/src/Spec2-Commander2/CmUICommandDisplayStrategy.extension.st index 4c0a5155..6a46b15d 100644 --- a/src/Spec2-Commander2/CmUICommandDisplayStrategy.extension.st +++ b/src/Spec2-Commander2/CmUICommandDisplayStrategy.extension.st @@ -2,9 +2,10 @@ Extension { #name : 'CmUICommandDisplayStrategy' } { #category : '*Spec2-Commander2' } CmUICommandDisplayStrategy >> display: aCmSpecCommand in: aMenuOrGroupPresenter do: aBlock [ + aMenuOrGroupPresenter addItem: [ :item | aBlock value: item. - item enabled: aCmSpecCommand canBeExecuted. + item enabled: [ aCmSpecCommand canBeExecuted ]. item ] ]