From d40affac9aa164bd357dc5b854f04d66249c2afb Mon Sep 17 00:00:00 2001 From: Jurn Wubben Date: Tue, 3 Feb 2026 21:10:40 +0100 Subject: [PATCH] Fixed button color logic extension --- extension/spotiqueue.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extension/spotiqueue.js b/extension/spotiqueue.js index e24742b..2ea38d1 100644 --- a/extension/spotiqueue.js +++ b/extension/spotiqueue.js @@ -195,6 +195,7 @@ class SpotiQueue { this.reconnectInterval, this.closing, ); + if (!this.reconnectInterval && !this.closing) { this.reconnectInterval = setInterval( () => this.connect(), @@ -202,14 +203,17 @@ class SpotiQueue { ); } - if (this.button) this.button.style.color = "" + if (this.button && !this.closing) { + this.button.style.color = "" + } + this.closing = false; } initUi() { const btn = new Spicetify.Topbar.Button( "SpotiQueue", - "enhance", // SVG icon or markup + "enhance", () => {}, ); @@ -268,3 +272,4 @@ class SpotiQueue { globalThis.spotiQueue = new SpotiQueue(); globalThis.spotiQueue.initUi(); })(); +