Fixes 2 sync and UI bugs in music-together plugin (#4071)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
HasselAssel
2025-12-19 08:13:56 +01:00
committed by GitHub
parent 58a19cdaa2
commit 92a943c755
3 changed files with 66 additions and 4 deletions

View File

@ -314,6 +314,11 @@ export class Queue {
if (!this.internalDispatch) {
if (event.type === 'CLEAR') {
this.ignoreFlag = true;
this.broadcast({
type: 'CLEAR_QUEUE',
payload: {},
});
return;
}
if (event.type === 'ADD_ITEMS') {
if (this.ignoreFlag) {
@ -347,7 +352,7 @@ export class Queue {
},
after: [
{
type: 'SYNC_PROGRESS',
type: 'SET_INDEX',
payload: {
index,
},