Home
last modified time | relevance | path

Searched refs:targetIndex (Results 1 – 3 of 3) sorted by relevance

/MusicFree/src/core/
H A Ddownload.ts84 const targetIndex = pendingMusicQueue.findIndex(_ => constant
87 if (targetIndex !== -1) {
89 .slice(0, targetIndex)
90 .concat(pendingMusicQueue.slice(targetIndex + 1));
97 const targetIndex = downloadingMusicQueue.findIndex(_ => constant
100 if (targetIndex !== -1) {
102 .slice(0, targetIndex)
103 .concat(downloadingMusicQueue.slice(targetIndex + 1));
H A DpluginManager.ts1310 const targetIndex = plugins.findIndex(_ => _.hash === hash); constant
1311 if (targetIndex !== -1) {
1313 const pluginName = plugins[targetIndex].name; constant
1314 await unlink(plugins[targetIndex].path);
/MusicFree/src/core/trackPlayer/
H A Dindex.ts64 targetIndex = currentIndex,
68 if (targetIndex < halfMaxMusicQueueLength) {
73 targetIndex + halfMaxMusicQueueLength,
324 const targetIndex = getMusicIndex(musicItem); constant
326 if (targetIndex === -1) {
331 if (currentIndex === targetIndex) {
334 draft.splice(targetIndex, 1);
353 draft.splice(targetIndex, 1);