From 5c242a07b6864fe6df1d1742999be0445f6873f2 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 18 Oct 2021 21:10:05 +0200 Subject: [PATCH] refresh file listing on upload complete --- copyparty/web/up2k.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 0f5f3c85..0b715df3 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -1162,6 +1162,11 @@ function up2k_init(subtle) { } } is_busy = st.todo.handshake.length; + try { + if (!is_busy && !uc.fsearch && !msel.getsel().length && (!mp.au || mp.au.paused)) + treectl.goto(get_evpath()); + } + catch (ex) { } } if (was_busy != is_busy) {