diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-10 16:47:26 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-10 16:56:49 -0800 |
commit | d35bcbbfbafdb9217f3dbad30f0d20a7841d6916 (patch) | |
tree | 35d39cdce4709c9933d4d0afee06dc1ac3894d3a | |
parent | 8861e9534a4b49b891379f61274249da317ac83d (diff) |
Add a Done: status for downloads.
-rw-r--r-- | MobileCydia.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 5555328..758e662 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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) { |