From 1447eb1fda4d0c345b7fee42b3ff8d7c36483873 Mon Sep 17 00:00:00 2001 From: MoetaYuko Date: Thu, 2 May 2024 13:54:54 +0800 Subject: [PATCH] musiccontrols: skip updateCover if cover not exists --- .config/ags/modules/indicators/musiccontrols.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/indicators/musiccontrols.js b/.config/ags/modules/indicators/musiccontrols.js index 72e3f2648..d39b49b4c 100644 --- a/.config/ags/modules/indicators/musiccontrols.js +++ b/.config/ags/modules/indicators/musiccontrols.js @@ -180,7 +180,7 @@ const CoverArt = ({ player, ...rest }) => { // const player = Mpris.getPlayer(); // Maybe no need to re-get player.. can't remember why I had this // Player closed // Note that cover path still remains, so we're checking title - if (!player || player.trackTitle == "") { + if (!player || player.trackTitle == "" || !player.coverPath) { self.css = `background-image: none;`; // CSS image App.applyCss(`${COMPILED_STYLE_DIR}/style.css`); return;