Commit 93fe7252 authored by Tomaz Canabrava's avatar Tomaz Canabrava

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: 's avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent b8d13084
...@@ -43,11 +43,7 @@ Button { ...@@ -43,11 +43,7 @@ Button {
repeat: true repeat: true
onTriggered: { onTriggered: {
if (__lastGlobalMouseX != ScreenTools.mouseX() || __lastGlobalMouseY != ScreenTools.mouseY()) { __forceHoverOff = (__lastGlobalMouseX != ScreenTools.mouseX() || __lastGlobalMouseY != ScreenTools.mouseY());
__forceHoverOff = true
} else {
__forceHoverOff = false
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment