# HG changeset patch # User Stefan Vogel # Date 1558105163 -7200 # Node ID 0d01da886d5a6cafec382013066cbd8f2e10541b # Parent 9d49ecf8661a3e717c571cb22762dfe3e0ce74ff #REFACTORING by stefan Sanitize BlockValues class: MenuEditor changed: #hasNonLinkedMenuSelectedHolder diff -r 9d49ecf8661a -r 0d01da886d5a MenuEditor.st --- a/MenuEditor.st Tue May 14 09:46:21 2019 +0200 +++ b/MenuEditor.st Fri May 17 16:59:23 2019 +0200 @@ -1763,18 +1763,17 @@ ! hasNonLinkedMenuSelectedHolder - "boolean holder, true if a single non linked menu item is selected - " + "boolean holder, true if a single non linked menu item is selected" + ^ BlockValue - with:[:m | - |items| - - items := self selectionHolder value. - (items size == 1) - and:[items first isKindOfNonLinkedMenu - and:[items first isRootItem not]] + with:[:selection | + (selection size == 1) + and:[selection first isKindOfNonLinkedMenu + and:[selection first isRootItem not]] ] argument:(self selectionHolder) + + "Modified: / 17-05-2019 / 16:18:19 / Stefan Vogel" ! hasSelectionChannel