mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 10:49:15 +02:00
Fixed #151: queue reorder or track deletion restarting currently playing track
This commit is contained in:
parent
48c9a8bd55
commit
6ed6634f93
6 changed files with 15 additions and 9 deletions
|
@ -92,10 +92,10 @@ export default {
|
|||
if (current) {
|
||||
dispatch('player/stop', null, {root: true})
|
||||
}
|
||||
if (index < state.currentIndex) {
|
||||
dispatch('currentIndex', state.currentIndex - 1)
|
||||
}
|
||||
commit('splice', {start: index, size: 1})
|
||||
if (index < state.currentIndex) {
|
||||
commit('currentIndex', state.currentIndex - 1)
|
||||
}
|
||||
if (current) {
|
||||
// we play next track, which now have the same index
|
||||
dispatch('currentIndex', index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue