#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Thu, 01 Feb 2018 14:03:21 +0100
changeset 5700 753647f41c3f
parent 5699 22dc6462ae23
child 5701 27382b38a961
#REFACTORING by cg class: MenuPanel::Item changed: #activeHelpText toottips - again
MenuPanel.st
--- a/MenuPanel.st	Wed Jan 31 14:45:56 2018 +0100
+++ b/MenuPanel.st	Thu Feb 01 14:03:21 2018 +0100
@@ -7096,8 +7096,21 @@
             ].
         ].
     ].
+
+    "/ usually not helpful:
+    "/  a) must care for ampersand in labels
+    "/  b) only helpful if label is an icon
     text isNil ifTrue:[
-        ^ self rawLabel
+        app notNil ifTrue:[
+            key := self rawLabel.
+            key notEmptyOrNil ifTrue:[
+                key := String withoutAmpersandEscapes:key.
+                text := app helpTextForKey:key.
+                text = key ifTrue:[
+                    text := nil.
+                ].
+            ]
+        ].
     ].
     ^ text
 !