Explorar o código

Merge pull request #9008 from Popov72/master

Fix callback of FilesInput sometimes not called
David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
782c42c5f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Misc/filesInput.ts

+ 1 - 1
src/Misc/filesInput.ts

@@ -157,7 +157,7 @@ export class FilesInput {
                 }
             }
 
-            if (--remaining.count) {
+            if (--remaining.count === 0) {
                 callback();
             }
         });