diff --git a/shell-launcher-applet/package/launcheritem.qml b/shell-launcher-applet/package/launcheritem.qml index ce7eae26..fe9c0a58 100644 --- a/shell-launcher-applet/package/launcheritem.qml +++ b/shell-launcher-applet/package/launcheritem.qml @@ -486,15 +486,6 @@ AppletItem { onXChanged: updateLaunchpadPos() onYChanged: updateLaunchpadPos() } - Timer { - id: toolTipShowTimer - interval: 50 - onTriggered: { - var point = Applet.rootObject.mapToItem(null, Applet.rootObject.width / 2, Applet.rootObject.height / 2) - toolTip.DockPanelPositioner.bounding = Qt.rect(point.x, point.y, toolTip.width, toolTip.height) - toolTip.open() - } - } TapHandler { id: tapHandler @@ -518,12 +509,10 @@ AppletItem { HoverHandler { onHoveredChanged: { if (hovered) { - toolTipShowTimer.start() + const point = launcher.mapToItem(null, launcher.width / 2, launcher.height / 2) + toolTip.DockPanelPositioner.bounding = Qt.rect(point.x, point.y, toolTip.width, toolTip.height) + toolTip.open() } else { - if (toolTipShowTimer.running) { - toolTipShowTimer.stop() - } - toolTip.close() } }