|
@ -335,10 +335,15 @@ export const GlobalContextMenu = () => { |
|
|
|
|
|
|
|
|
const handleRemoveSelected = async () => { |
|
|
const handleRemoveSelected = async () => { |
|
|
if (misc.contextMenu.type === 'nowPlaying') { |
|
|
if (misc.contextMenu.type === 'nowPlaying') { |
|
|
|
|
|
if (multiSelect.selected.length === playQueue.entry.length) { |
|
|
|
|
|
dispatch(clearPlayQueue()); |
|
|
|
|
|
dispatch(setStatus('PAUSED')); |
|
|
|
|
|
} else { |
|
|
dispatch(removeFromPlayQueue({ entries: multiSelect.selected })); |
|
|
dispatch(removeFromPlayQueue({ entries: multiSelect.selected })); |
|
|
if (playQueue.currentPlayer === 1) { |
|
|
if (playQueue.currentPlayer === 1) { |
|
|
dispatch(fixPlayer2Index()); |
|
|
dispatch(fixPlayer2Index()); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
dispatch(removeFromPlaylist({ selectedEntries: multiSelect.selected })); |
|
|
dispatch(removeFromPlaylist({ selectedEntries: multiSelect.selected })); |
|
|
} |
|
|
} |
|
|