Browse Source

Removed if (true) then true, else false

without a check this code should be a bit faster, and thus
the check was really uneeded.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
QGC4.4
Tomaz Canabrava 9 years ago
parent
commit
93fe725299
  1. 6
      src/QmlControls/QGCButton.qml

6
src/QmlControls/QGCButton.qml

@ -43,11 +43,7 @@ Button { @@ -43,11 +43,7 @@ Button {
repeat: true
onTriggered: {
if (__lastGlobalMouseX != ScreenTools.mouseX() || __lastGlobalMouseY != ScreenTools.mouseY()) {
__forceHoverOff = true
} else {
__forceHoverOff = false
}
__forceHoverOff = (__lastGlobalMouseX != ScreenTools.mouseX() || __lastGlobalMouseY != ScreenTools.mouseY());
}
}

Loading…
Cancel
Save