#REFACTORING by stefan
Sanitize BlockValues
class: MenuEditor
changed: #hasNonLinkedMenuSelectedHolder
--- 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