move cpu core consumer tracking into applet, move mpris art caching into service
This commit is contained in:
parent
baf4fd8bd1
commit
c96856581d
5 changed files with 27 additions and 32 deletions
|
|
@ -118,6 +118,18 @@ QtObject {
|
|||
_selectedIdentity = players[chosen].identity ?? "";
|
||||
}
|
||||
|
||||
// Album art caching - persists across panel/dock collapse
|
||||
property string cachedArt: ""
|
||||
property string _artTrack: ""
|
||||
readonly property string _artUrl: player?.trackArtUrl ?? ""
|
||||
readonly property string _currentTrack: player?.trackTitle ?? ""
|
||||
on_ArtUrlChanged: if (_artUrl)
|
||||
cachedArt = _artUrl
|
||||
on_CurrentTrackChanged: if (_currentTrack !== _artTrack) {
|
||||
_artTrack = _currentTrack;
|
||||
cachedArt = _artUrl || "";
|
||||
}
|
||||
|
||||
function switchPlayer(idx) {
|
||||
playerIdx = idx;
|
||||
if (players[idx])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue