]> git.saurik.com Git - cydia.git/commitdiff
Add a Done: status for downloads.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 00:47:26 +0000 (16:47 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 00:56:49 +0000 (16:56 -0800)
MobileCydia.mm

index 55553282cbf7f0e2c18e7debe98fc0a595d7c4f6..758e66224a6b5555343912ec2d1d6c683f05dcf9 100644 (file)
@@ -929,6 +929,7 @@ class Status :
     }
 
     virtual void IMSHit(pkgAcquire::ItemDesc &item) {
+        Done(item);
     }
 
     virtual void Fetch(pkgAcquire::ItemDesc &item) {
@@ -938,6 +939,9 @@ class Status :
     }
 
     virtual void Done(pkgAcquire::ItemDesc &item) {
+        NSString *name([NSString stringWithUTF8String:item.ShortDesc.c_str()]);
+        CydiaProgressEvent *event([CydiaProgressEvent eventWithMessage:[NSString stringWithFormat:Colon_, UCLocalize("DONE"), name] ofType:kCydiaProgressEventTypeStatus forItem:item]);
+        [delegate_ performSelectorOnMainThread:@selector(addProgressEvent:) withObject:event waitUntilDone:YES];
     }
 
     virtual void Fail(pkgAcquire::ItemDesc &item) {