MenuEditor.st
changeset 3664 0d01da886d5a
parent 3636 197a2fbb8c5d
child 3751 5c7bb0559dc1
     1.1 --- a/MenuEditor.st	Tue May 14 09:46:21 2019 +0200
     1.2 +++ b/MenuEditor.st	Fri May 17 16:59:23 2019 +0200
     1.3 @@ -1763,18 +1763,17 @@
     1.4  !
     1.5  
     1.6  hasNonLinkedMenuSelectedHolder
     1.7 -    "boolean holder, true if a single non linked menu item is selected
     1.8 -    "
     1.9 +    "boolean holder, true if a single non linked menu item is selected"
    1.10 +
    1.11      ^ BlockValue
    1.12 -        with:[:m | 
    1.13 -                |items| 
    1.14 -
    1.15 -                items := self selectionHolder value.
    1.16 -                (items size == 1) 
    1.17 -                and:[items first isKindOfNonLinkedMenu
    1.18 -                and:[items first isRootItem not]]
    1.19 +        with:[:selection | 
    1.20 +                (selection size == 1) 
    1.21 +                 and:[selection first isKindOfNonLinkedMenu
    1.22 +                 and:[selection first isRootItem not]]
    1.23               ]
    1.24          argument:(self selectionHolder)
    1.25 +
    1.26 +    "Modified: / 17-05-2019 / 16:18:19 / Stefan Vogel"
    1.27  !
    1.28  
    1.29  hasSelectionChannel