Skip to next on trash, else stop playback

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-10 21:48:30 -08:00
parent 2e1460f72d
commit 2e52066293
1 changed files with 6 additions and 2 deletions

View File

@ -735,8 +735,12 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
if([indexes containsIndex:currentEntry.index]) {
[self updateNextAfterDeleted:currentEntry withDeleteIndexes:indexes];
if(nextEntryAfterDeleted) {
[playbackController playEntry:nextEntryAfterDeleted];
nextEntryAfterDeleted = nil;
} else {
[playbackController stop:nil];
}
}
[[SQLiteStore sharedStore] playlistRemoveTracksAtIndexes:unarrangedIndexes