Also use sortIndex for next queue item.
This commit is contained in:
parent
913e8f0da9
commit
4fc38b74ce
|
@ -92,7 +92,7 @@ export class Settings {
|
|||
}
|
||||
|
||||
public nextQueueItem(): Queue.Item | undefined {
|
||||
return this.queue.sort((a, b) => a.added.getTime() - b.added.getTime())[0];
|
||||
return this.queue.sort((a, b) => a.sortIndex - b.sortIndex)[0];
|
||||
}
|
||||
|
||||
public async removeQueueItem(id: number): Promise<void> {
|
||||
|
|
Loading…
Reference in New Issue