Small fix for "prev" not giving an error when in empty playlist.

pull/20/head
Icedream 2015-10-28 00:14:44 +01:00
parent a5a8ae1046
commit 9417e33708
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ ts3clientService.on "started", (ts3proc) =>
return
vlc.playlist.next()
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!"
return
vlc.playlist.prev()