Small fix for "prev" not giving an error when in empty playlist.
parent
a5a8ae1046
commit
9417e33708
2
app.iced
2
app.iced
|
@ -232,7 +232,7 @@ ts3clientService.on "started", (ts3proc) =>
|
||||||
return
|
return
|
||||||
vlc.playlist.next()
|
vlc.playlist.next()
|
||||||
when "prev", "previous"
|
when "prev", "previous"
|
||||||
if vlc.playlist.mode != vlc.playlist.Loop and vlc.playlist.currentItem == 0
|
if vlc.playlist.mode != vlc.playlist.Loop and vlc.playlist.currentItem <= 0
|
||||||
ts3query.sendtextmessage args.targetmode, invoker.id, "Can't jump to previous playlist item, this is the first one!"
|
ts3query.sendtextmessage args.targetmode, invoker.id, "Can't jump to previous playlist item, this is the first one!"
|
||||||
return
|
return
|
||||||
vlc.playlist.prev()
|
vlc.playlist.prev()
|
||||||
|
|
Loading…
Reference in New Issue