Changeset 3668
- Timestamp:
- Oct 31, 2007, 7:31:12 PM (15 years ago)
- Location:
- branches/0.9x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9x/NEWS
r3641 r3668 3 3 0.92 (2007/xx/yy) 4 4 - OS X: 5 + Leopard: Time Machine will ignore incomplete files 5 6 + Leopard: Fix bug with typing values in Inspector->Options 6 7 + Leopard: Fix bug with toggling Minimal View -
branches/0.9x/macosx/Torrent.m
r3504 r3668 1451 1451 1452 1452 [self update]; 1453 1454 //mark incomplete files to be ignored by Time Machine 1455 if ([NSApp isOnLeopardOrBetter]) 1456 { 1457 NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]]; 1458 CSBackupSetItemExcluded((CFURLRef)url, ![self allDownloaded], false); 1459 } 1460 1453 1461 return self; 1454 1462 } … … 1585 1593 fDateCompleted = [[NSDate alloc] init]; 1586 1594 1595 //allow to be backed up by Time Machine 1596 if ([NSApp isOnLeopardOrBetter]) 1597 { 1598 NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]]; 1599 CSBackupSetItemExcluded((CFURLRef)url, false, false); 1600 } 1601 1587 1602 fStat = tr_torrentStat(fHandle); 1588 1603 [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self]; … … 1590 1605 1591 1606 case TR_CP_INCOMPLETE: 1607 //do not allow to be backed up by Time Machine 1608 if ([NSApp isOnLeopardOrBetter]) 1609 { 1610 NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]]; 1611 CSBackupSetItemExcluded((CFURLRef)url, true, false); 1612 } 1613 1592 1614 [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentRestartedDownloading" object: self]; 1593 1615 break;
Note: See TracChangeset
for help on using the changeset viewer.