show title tooltips only when the dock is ready

pull/2/head
Michail Vourlakos 7 years ago
parent 73940eff3b
commit 5633d6694d

@ -102,6 +102,7 @@ DragDrop.DropArea {
property bool inStartup: true property bool inStartup: true
property bool isHalfShown: false //is used to disable the zoom hovering effect at sliding in-out the dock property bool isHalfShown: false //is used to disable the zoom hovering effect at sliding in-out the dock
property bool isHorizontal: plasmoid.formFactor === PlasmaCore.Types.Horizontal property bool isHorizontal: plasmoid.formFactor === PlasmaCore.Types.Horizontal
property bool isReady: !(dockIsHidden || inSlidingIn || inSlidingOut)
property bool isVertical: !isHorizontal property bool isVertical: !isHorizontal
property bool isHovered: latteApplet ? ((latteAppletHoveredIndex !== -1) && (layoutsContainer.hoveredIndex !== -1)) //|| wholeArea.containsMouse property bool isHovered: latteApplet ? ((latteAppletHoveredIndex !== -1) && (layoutsContainer.hoveredIndex !== -1)) //|| wholeArea.containsMouse
: (layoutsContainer.hoveredIndex !== -1) //|| wholeArea.containsMouse : (layoutsContainer.hoveredIndex !== -1) //|| wholeArea.containsMouse
@ -561,6 +562,12 @@ DragDrop.DropArea {
} }
} }
onIsReadyChanged: {
if (isReady && !titleTooltipDialog.visible && titleTooltipDialog.activeItemHovered){
titleTooltipDialog.show(titleTooltipDialog.activeItem, titleTooltipDialog.activeItemText);
}
}
onIsVerticalChanged: { onIsVerticalChanged: {
if (isVertical) { if (isVertical) {
if (plasmoid.configuration.panelPosition === Latte.Dock.Left) if (plasmoid.configuration.panelPosition === Latte.Dock.Left)
@ -1344,9 +1351,12 @@ DragDrop.DropArea {
activeItemText = text; activeItemText = text;
} }
if (isReady) {
showTitleTooltipTimer.start(); showTitleTooltipTimer.start();
} }
}
function update() { function update() {
activeItemHovered = true activeItemHovered = true
title = activeItemText; title = activeItemText;

Loading…
Cancel
Save