Commit 6ae9528c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Task Manager] Load only icons in tooltip that we end up showing

Only launchers show the window icon, don't load it for other windows.
Only when minimized we show the fallback icon, don't load it for non-minimized windows.

Differential Revision: https://phabricator.kde.org/D10382
parent 44440633
......@@ -84,7 +84,7 @@ Column {
PlasmaCore.IconItem {
Layout.preferredWidth: units.iconSizes.medium
Layout.preferredHeight: units.iconSizes.medium
source: icon
source: !isWin ? icon : ""
animated: false
usesPlasmaTheme: false
visible: !isWin
......@@ -217,10 +217,10 @@ Column {
// when minimized, we don't have a preview, so show the icon
PlasmaCore.IconItem {
anchors.fill: parent
source: icon
source: thumbnailSourceItem.isMinimized && !albumArtImage.visible ? icon : ""
animated: false
usesPlasmaTheme: false
visible: thumbnailSourceItem.isMinimized && !albumArtImage.visible
visible: valid
ToolTipWindowMouseArea {
anchors.fill: parent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment