mirror of
https://github.com/9001/copyparty.git
synced 2025-09-28 12:42:26 -06:00
defer next-song hotkey while changing folders
This commit is contained in:
parent
b049631169
commit
f7e08ed007
|
@ -12987,6 +12987,10 @@ function song_skip(n, dirskip) {
|
|||
}
|
||||
function next_song(e) {
|
||||
ev(e);
|
||||
if (QS('.dumb_loader_thing')) {
|
||||
treectl.ls_cb = next_song;
|
||||
return;
|
||||
}
|
||||
if (mp.order.length) {
|
||||
var dirskip = mpl.traversals;
|
||||
mpl.traversals = 0;
|
||||
|
@ -13020,6 +13024,10 @@ function prev_song(e) {
|
|||
if (mp.au && !mp.au.paused && mp.au.currentTime > 3)
|
||||
return seek_au_sec(0);
|
||||
|
||||
if (QS('.dumb_loader_thing')) {
|
||||
treectl.ls_cb = function () { song_skip(-1); };
|
||||
return;
|
||||
}
|
||||
return song_skip(-1);
|
||||
}
|
||||
function dl_song() {
|
||||
|
|
Loading…
Reference in a new issue