pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
62 stars 65 forks source link

Use a block to determine the enablement state of a menu item that is created based on a command #1604

Closed koendehondt closed 2 months ago

koendehondt commented 2 months ago

Code changes for https://github.com/pharo-spec/Spec/issues/1603.

I did not add a test, nor an example, because it is not clear to me how to test this. If one can provide me some guidance, I am happy to add the test.

koendehondt commented 2 months ago

This change is important for the Spec book. Please merge the PR to Pharo 12 as well.

jecisc commented 2 months ago

Hi @koendehondt Would it be possible to produce the PR to P12 and ping me on it to merge it?

koendehondt commented 2 months ago

Hi @koendehondt Would it be possible to produce the PR to P12 and ping me on it to merge it?

@jecisc Here it is: https://github.com/pharo-spec/Spec/pull/1605

Thank you!