Changeset 3695


Ignore:
Timestamp:
Nov 2, 2007, 10:07:16 PM (14 years ago)
Author:
livings124
Message:

if the download finishes/becomes unfinished, keep trying to reset the time machine setting, and other miscellaneous cleanup

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.h

    r3633 r3695  
    3030    tr_handle       * fLib;
    3131   
    32     NSImage         * fDockIcon, * fBadge, * fUploadBadge, * fDownloadBadge;
     32    NSImage         * fDockIcon, * fBadge, * fUploadBadge;
    3333   
    3434    NSDictionary    * fAttributes;
  • trunk/macosx/Badger.m

    r3671 r3695  
    174174                }
    175175               
    176                 if (!fDownloadBadge)
    177                     fDownloadBadge = [NSImage imageNamed: @"DownloadBadge"];
    178                
    179176                //place badge and text
    180                 [fDownloadBadge compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver];
     177                [[NSImage imageNamed: @"DownloadBadge"] compositeToPoint: badgeRect.origin operation: NSCompositeSourceOver];
    181178                [self badgeString: downloadRateString forRect: stringRect];
    182179            }
  • trunk/macosx/Controller.m

    r3692 r3695  
    593593    NSDate * startDate = [NSDate date];
    594594   
     595    #warning do this in tr_close?
    595596    while ([startDate timeIntervalSinceNow] >= -5.0 && tr_handleStatus(fLib)->natTraversalStatus != TR_NAT_TRAVERSAL_DISABLED)
    596597        usleep(100000);
  • trunk/macosx/Torrent.m

    r3680 r3695  
    16321632            {
    16331633                NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    1634                 CSBackupSetItemExcluded((CFURLRef)url, false, false);
     1634                fNeedSetTimeMachine = CSBackupSetItemExcluded((CFURLRef)url, false, false) != noErr;
    16351635            }
    16361636           
     
    16441644            {
    16451645                NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
    1646                 CSBackupSetItemExcluded((CFURLRef)url, true, false);
     1646                fNeedSetTimeMachine = CSBackupSetItemExcluded((CFURLRef)url, true, false) != noErr;
    16471647            }
    16481648           
Note: See TracChangeset for help on using the changeset viewer.