1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

osd/media playback: delay showing until album art is ready and avoid

re-showing when duplicate metadata comes from mpris
related #2787
port 1.5
This commit is contained in:
bbedward
2026-07-10 13:35:51 -04:00
parent 05feb211ba
commit 6a58adfb29
3 changed files with 77 additions and 23 deletions
+5
View File
@@ -191,6 +191,11 @@ Singleton {
return (p.trackTitle || "") + "" + (p.trackArtist || "") + "" + (p.trackAlbum || "");
}
function artReadyFor(player) {
const url = getArtworkUrl(player);
return url !== "" && url === _lastArtUrl && !loading && resolvedArtUrl !== "";
}
function _updateArtUrl() {
const key = _trackKey();
// Skip once real art is committed for this track (dedup Chrome's multi-size