Commit 6f826a1b authored by Konrad Materka's avatar Konrad Materka
Browse files

[applets/mediacontroller] Don't use Album Art for icon

Summary:
Icon of Media Player applet is missing in the System Tray settings when
the media playing has a cover. Such icon is present when nothing is playing.
Fix by not using album art in any case - icon is not longer used in
tooltip, can be static.

BUG: 420197

FIXED-IN: 5.19.0

Test plan:
1. play audio/video with a player compatible with Media Player applet
2. open system tray settings during playback
3. Icon of Media Player applet is always present in system tray
settings, regardless of state.
parent b9f1d838
...@@ -309,7 +309,6 @@ Item { ...@@ -309,7 +309,6 @@ Item {
PropertyChanges { PropertyChanges {
target: plasmoid target: plasmoid
icon: albumArt ? albumArt : "media-playback-playing"
toolTipMainText: track toolTipMainText: track
toolTipSubText: artist ? i18nc("by Artist (player name)", "by %1 (%2)", artist, identity) : identity toolTipSubText: artist ? i18nc("by Artist (player name)", "by %1 (%2)", artist, identity) : identity
} }
...@@ -320,7 +319,6 @@ Item { ...@@ -320,7 +319,6 @@ Item {
PropertyChanges { PropertyChanges {
target: plasmoid target: plasmoid
icon: albumArt ? albumArt : "media-playback-paused"
toolTipMainText: track toolTipMainText: track
toolTipSubText: artist ? i18nc("by Artist (paused, player name)", "by %1 (paused, %2)", artist, identity) : i18nc("Paused (player name)", "Paused (%1)", identity) toolTipSubText: artist ? i18nc("by Artist (paused, player name)", "by %1 (paused, %2)", artist, identity) : i18nc("Paused (player name)", "Paused (%1)", identity)
} }
......
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