Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing Unzip function to call progress block after each file is upd…

…ated, even if the percentage as an integer hasn't changed.
  • Loading branch information...
commit 11ef4779ee5466a05176248228a6518b86f34bc7 1 parent 21a7252
Matt Connolly authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 ZipArchive.m
6 ZipArchive.m
View
@@ -354,10 +354,8 @@ -(BOOL) UnzipFileTo:(NSString*) path overWrite:(BOOL) overwrite
if (_progressBlock && _numFiles) {
index++;
int p = index*100/_numFiles;
- if (p!=progress) {
- progress = p;
- _progressBlock(progress, index, _numFiles);
- }
+ progress = p;
+ _progressBlock(progress, index, _numFiles);
}
}while( ret==UNZ_OK && UNZ_OK!=UNZ_END_OF_LIST_OF_FILE );
return success;
Please sign in to comment.
Something went wrong with that request. Please try again.