Quellcode durchsuchen

Merge pull request #9008 from Popov72/master

Fix callback of FilesInput sometimes not called
David Catuhe vor 5 Jahren
Ursprung
Commit
782c42c5f5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();
             }
         });