Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
bd85f400
Commit
bd85f400
authored
Nov 30, 2021
by
Bharadwaj Raju
📚
Committed by
Fushan Wen
Nov 30, 2021
Browse files
Better comment
parent
92950b87
Pipeline
#103152
passed with stage
in 3 minutes and 57 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
View file @
bd85f400
...
...
@@ -246,9 +246,10 @@ ColumnLayout {
Image
{
id
:
albumArtImage
// also Image.Loading to prevent loading thumbnails just because the album art takes a split second to load
// only show album art if there's only one window and it's not a browser -- else check if window title and track match
// if this is a group tooltip, we check if window title and track match, to allow distinguishing the different windows
// if this app is a browser, we also check the title, so album art is not shown when the user is on some other tab
// in all other cases we can safely show the album art without checking the title
readonly
property
bool
available
:
(
status
===
Image
.
Ready
||
status
===
Image
.
Loading
)
&&
(
!
(
isGroup
||
backend
.
applicationCategories
(
launcherUrl
).
includes
(
"
WebBrowser
"
))
||
generateTitle
().
includes
(
track
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment