Skip to content
Snippets Groups Projects
Commit 93fe7252 authored by Tomaz Canabrava's avatar Tomaz Canabrava
Browse files

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: default avatarTomaz Canabrava <tomaz.canabrava@intel.com>
parent b8d13084
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment