Skip to content

Commit

Permalink
Merge pull request #1605 from koendehondt/gh1603-menu-item-enablement…
Browse files Browse the repository at this point in the history
…-pharo12

Use a block to determine the enablement state of a menu item that is created based on a command
  • Loading branch information
jecisc authored Sep 19, 2024
2 parents c7d68d7 + e551500 commit 1e9b523
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ CmUICommandDisplayStrategy >> display: aCmSpecCommand in: aMenuOrGroupPresenter
aMenuOrGroupPresenter
addItem: [ :item |
aBlock value: item.
item enabled: aCmSpecCommand canBeExecuted.
item enabled: [ aCmSpecCommand canBeExecuted ].
item ]
]

0 comments on commit 1e9b523

Please sign in to comment.