move cpu core consumer tracking into applet, move mpris art caching into service

This commit is contained in:
Damocles 2026-04-25 22:44:23 +02:00
parent baf4fd8bd1
commit c96856581d
5 changed files with 27 additions and 32 deletions

View file

@ -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])