From e6aec189bd4e501577eb80c4d3e12e75a2a02fd1 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 5 Mar 2023 19:49:54 +0000 Subject: [PATCH] fix flickering toast on upload finish --- copyparty/web/up2k.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 2499a29f..2292d511 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -1795,6 +1795,15 @@ function up2k_init(subtle) { })(); function uptoast() { + if (st.busy.handshake.length) + return; + + for (var a = 0; a < st.files.length; a++) { + var t = st.files[a]; + if (t.want_recheck && !t.rechecks) + return; + } + var sr = uc.fsearch, ok = pvis.ctr.ok, ng = pvis.ctr.ng,