fix random files connect button vanishing (#5409)

This commit is contained in:
Simon Smith 2023-10-09 21:14:06 +01:00 committed by GitHub
parent 5ad481a2e0
commit a39f874c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10574,7 +10574,8 @@
}
function onFilesStateChange(xfiles, state) {
QV('p13Connect', (state == 0) && (files == null) && (filesNode.mtype == 2));
setSessionActivity();
QV('p13Connect', (state == 0) && (filesNode.mtype == 2));
QV('p13Connects', (state == 0) && (features2 & 0x200) && (filesNode.agent != null) && (filesNode.agent.id != 3) && (filesNode.agent.id != 4) && ((features2 & 0x800000) == 0));
QV('p13Disconnect', state != 0);
var str = StatusStrs[state];