Revise to use NO_ARGS when needed. Add current to total progress

This commit is contained in:
Gregory John Casamento 2019-08-06 09:24:21 -04:00
parent a983e7222d
commit fce4e2e30c
2 changed files with 5 additions and 3 deletions

View file

@ -169,6 +169,8 @@ static NSProgress *__currentProgress = nil;
- (void)resignCurrent
{
int64_t completed = [__currentProgress completedUnitCount];
[__currentProgress setCompletedUnitCount: completed + [self totalUnitCount]];
__currentProgress = nil;
}