You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a consequence, a menu item's enablement state is set only once, when the menu item is added. Given that the command decides whether it can be executed, the enablement state should be updated every time a menu item is displayed. In Spec, that is achieved by passing a block to #enabled:.
Context : Pharo 12 and Pharo 13.
I think CmUICommandDisplayStrategy>>#display:in:do: is implemented incorrectly. Now it is:
As a consequence, a menu item's enablement state is set only once, when the menu item is added. Given that the command decides whether it can be executed, the enablement state should be updated every time a menu item is displayed. In Spec, that is achieved by passing a block to
#enabled:
.So I think the method should be implemented as:
This issue is related to #1559 and #1561, which report other enablement issues.
The text was updated successfully, but these errors were encountered: