Browse Source

Simplify enabled behaviour

CURA-9232
j.delarago 2 years ago
parent
commit
6f7fbbecf7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      resources/qml/PrintSetupTooltip.qml

+ 1 - 3
resources/qml/PrintSetupTooltip.qml

@@ -18,7 +18,7 @@ UM.PointingRectangle
 
     opacity: 0
     // This should be disabled when invisible, otherwise it will catch mouse events.
-    enabled: false
+    enabled: opacity > 0
 
     Behavior on opacity
     {
@@ -54,13 +54,11 @@ UM.PointingRectangle
         }
         base.opacity = 1;
         target = Qt.point(position.x + 1, position.y + Math.round(UM.Theme.getSize("tooltip_arrow_margins").height / 2))
-        enabled = true
     }
 
     function hide()
     {
         base.opacity = 0;
-        enabled = false
     }
 
     ScrollView