Hide tooltips when they're not hovered anymore

Fix hovered avatar staying visible when cursor goes outside of window
(in most cases)
This commit is contained in:
miruka 2019-07-24 15:58:43 -04:00
parent 3439a74dab
commit 29107ca7f2

View File

@ -19,4 +19,8 @@ ToolTip {
TapHandler {
onTapped: { toolTip.hide() }
}
HoverHandler {
onHoveredChanged: if (!hovered) { toolTip.hide() }
}
}