Fixed button color logic extension
This commit is contained in:
parent
a13663cdbd
commit
d40affac9a
1 changed files with 7 additions and 2 deletions
|
|
@ -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();
|
||||
})();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue