1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-26 02:50:26 +00:00

Fix: update last played tab on state change

This commit is contained in:
jcorporation 2018-11-28 16:57:55 +00:00
parent d8e9afa8a4
commit 2b2991d343

View File

@ -1594,7 +1594,7 @@ function parseState(obj) {
pb[i].innerText = ''; pb[i].innerText = '';
} }
if (app.current.app == 'LastPlayed') if (app.current.app == 'Queue' && app.current.tab == 'LastPlayed')
sendAPI({"cmd": "MPD_API_QUEUE_LAST_PLAYED", "data": {"offset": app.current.page}}, parseLastPlayed); sendAPI({"cmd": "MPD_API_QUEUE_LAST_PLAYED", "data": {"offset": app.current.page}}, parseLastPlayed);
lastState = obj; lastState = obj;