diff --git a/modules/MprisMenu.qml b/modules/MprisMenu.qml index 6453dee..719436d 100644 --- a/modules/MprisMenu.qml +++ b/modules/MprisMenu.qml @@ -28,11 +28,17 @@ M.PopupPanel { Image { id: _artImg anchors.fill: parent - source: menuWindow.player?.trackArtUrl ?? "" fillMode: Image.PreserveAspectCrop visible: status === Image.Ready asynchronous: true - cache: false + + property string _lastGoodSource: "" + property string _lastTrack: "" + readonly property string _artUrl: menuWindow.player?.trackArtUrl ?? "" + readonly property string _track: menuWindow.player?.trackTitle ?? "" + on_ArtUrlChanged: if (_artUrl) _lastGoodSource = _artUrl + on_TrackChanged: if (_track !== _lastTrack) { _lastTrack = _track; _lastGoodSource = _artUrl || "" } + source: _lastGoodSource } Rectangle {