Commit 3c4ba1ae authored by Nate Graham's avatar Nate Graham 🔩

[applets/taskmanager] Don't show tooltip subtitle that's identical to the main text

Summary: Before-and-after pictures below should be self-explanatory:

Test Plan:
Before: {F8094802}
After: {F8094803}

Reviewers: #vdg, #plasma, filipf

Reviewed By: #vdg, filipf

Subscribers: filipf, plasma-devel

Tags: #plasma

Maniphest Tasks: T12640

Differential Revision: https://phabricator.kde.org/D27273
parent 33fa1d14
......@@ -100,6 +100,7 @@ ColumnLayout {
spacing: 0
// app name
PlasmaExtras.Heading {
id: appNameHeading
level: 3
maximumLineCount: 1
lineHeight: 1
......@@ -119,7 +120,7 @@ ColumnLayout {
elide: Text.ElideRight
text: generateTitle()
opacity: 0.75
visible: !hasPlayer && text.length !== 0
visible: !hasPlayer && text.length !== 0 && text !== appNameHeading.text
}
// subtext
PlasmaExtras.Heading {
......@@ -130,7 +131,7 @@ ColumnLayout {
elide: Text.ElideRight
text: isWin ? generateSubText() : ""
opacity: 0.6
visible: text.length !== 0
visible: text.length !== 0 && text !== appNameHeading.text
}
}
......
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