mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Revise to use NO_ARGS when needed. Add current to total progress
This commit is contained in:
parent
a983e7222d
commit
fce4e2e30c
2 changed files with 5 additions and 3 deletions
|
@ -169,6 +169,8 @@ static NSProgress *__currentProgress = nil;
|
|||
|
||||
- (void)resignCurrent
|
||||
{
|
||||
int64_t completed = [__currentProgress completedUnitCount];
|
||||
[__currentProgress setCompletedUnitCount: completed + [self totalUnitCount]];
|
||||
__currentProgress = nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue