From 0c84b6d16611a93ffcd81179a465a4a01076d59a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 26 Feb 2024 22:36:00 +0700 Subject: [PATCH] remove comments --- .config/ags/modules/indicators/musiccontrols.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.config/ags/modules/indicators/musiccontrols.js b/.config/ags/modules/indicators/musiccontrols.js index c4e54853d..6575c69ff 100644 --- a/.config/ags/modules/indicators/musiccontrols.js +++ b/.config/ags/modules/indicators/musiccontrols.js @@ -188,7 +188,6 @@ const CoverArt = ({ player, ...rest }) => { // Player closed // Note that cover path still remains, so we're checking title if (!player || player.trackTitle == "") { - self.css = `background-image: none;`; App.applyCss(`${COMPILED_STYLE_DIR}/style.css`); return; } @@ -196,14 +195,12 @@ const CoverArt = ({ player, ...rest }) => { const coverPath = player.coverPath; const stylePath = `${player.coverPath}${lightDark}${COVER_COLORSCHEME_SUFFIX}`; if (player.coverPath == lastCoverPath) { // Since 'notify::cover-path' emits on cover download complete - // Utils.timeout(200, () => { self.css = `background-image: url('${coverPath}');`; }); Utils.timeout(200, () => self.attribute.showImage(self, coverPath)); } lastCoverPath = player.coverPath; // If a colorscheme has already been generated, skip generation if (fileExists(stylePath)) { - // Utils.timeout(200, () => { self.css = `background-image: url('${coverPath}');`; }); self.attribute.showImage(self, coverPath) App.applyCss(stylePath); return; @@ -216,7 +213,6 @@ const CoverArt = ({ player, ...rest }) => { exec(`wal -i "${player.coverPath}" -n -t -s -e -q ${lightDark}`) exec(`cp ${GLib.get_user_cache_dir()}/wal/colors.scss ${App.configDir}/scss/_musicwal.scss`); exec(`sass ${App.configDir}/scss/_music.scss ${stylePath}`); - // self.css = `background-image: url('${coverPath}');`; Utils.timeout(200, () => self.attribute.showImage(self, coverPath)); App.applyCss(`${stylePath}`); })