From 2bb2c23d01fa0f2f02025b43ffd70b5d16284aee Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 18 Mar 2018 13:00:41 +0200 Subject: [PATCH] use default previews for launchers -- use default previews for launchers when the user has enabled the tasks previews functionality -- fix some warnings for previews --- plasmoid/package/contents/ui/task/TaskDelegate.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/plasmoid/package/contents/ui/task/TaskDelegate.qml b/plasmoid/package/contents/ui/task/TaskDelegate.qml index 414f49af2..45f23bd22 100644 --- a/plasmoid/package/contents/ui/task/TaskDelegate.qml +++ b/plasmoid/package/contents/ui/task/TaskDelegate.qml @@ -523,7 +523,7 @@ MouseArea{ icList.hoveredIndex = index; } - if (root.latteDock && (!root.showPreviews || (root.showPreviews && isLauncher))){ + if (root.latteDock && (!root.showPreviews)){ root.latteDock.showTooltipLabel(mainItemContainer, model.AppName); } @@ -920,9 +920,15 @@ MouseArea{ toolTipDelegate.appName = Qt.binding(function() { return model.AppName; }); - toolTipDelegate.pidParent = Qt.binding(function() { - return model.AppPid; - }); + + if (!isLauncher) { + toolTipDelegate.pidParent = Qt.binding(function() { + return model.AppPid; + }); + } else { + toolTipDelegate.pidParent = -1; + } + toolTipDelegate.windows = Qt.binding(function() { return model.LegacyWinIdList; });