Implemented a way to update the queue UI with a description of the current action.
This commit is contained in:
1 parent
a218dc8aae
commit
5219a73a7a
6 files changed
+42
-11
No files matched your search
@@ -17,6 +17,8 @@
|
||||
|
||||
@interface SBQueueItem () <MP42FileDelegate>
|
||||
|
||||
@property (nonatomic, readwrite) NSString *localizedWorkingDescription;
|
||||
|
||||
@property (nonatomic, readwrite, retain) MP42File *mp4File;
|
||||
@property (nonatomic, readwrite) NSMutableArray *actionsInternal;
|
||||
@property (atomic) BOOL cancelled;
|
||||
@@ -26,6 +28,7 @@
|
||||
@implementation SBQueueItem
|
||||
|
||||
@synthesize status = _status;
|
||||
@synthesize localizedWorkingDescription = _localizedWorkingDescription;
|
||||
|
||||
@synthesize attributes = _attributes;
|
||||
@synthesize actionsInternal = _actions;
|
||||
@@ -241,9 +244,13 @@
|
||||
}
|
||||
|
||||
for (id<SBQueueActionProtocol> action in self.actions) {
|
||||
self.localizedWorkingDescription = action.localizedDescription;
|
||||
[self progressStatus:0];
|
||||
[action runAction:self];
|
||||
}
|
||||
|
||||
self.localizedWorkingDescription = nil;
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user