mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
when removing a torrent, allow it to be backed up by time machine again
This commit is contained in:
parent
3ee2862d40
commit
fbc7d6b827
1 changed files with 7 additions and 0 deletions
|
@ -180,6 +180,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
||||||
|
|
||||||
- (void) closeRemoveTorrent
|
- (void) closeRemoveTorrent
|
||||||
{
|
{
|
||||||
|
//allow the file to be index by Time Machine
|
||||||
|
if ([NSApp isOnLeopardOrBetter])
|
||||||
|
{
|
||||||
|
NSURL *url = [NSURL fileURLWithPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]];
|
||||||
|
CSBackupSetItemExcluded((CFURLRef)url, false, true);
|
||||||
|
}
|
||||||
|
|
||||||
tr_torrentRemoveSaved(fHandle);
|
tr_torrentRemoveSaved(fHandle);
|
||||||
tr_torrentClose(fHandle);
|
tr_torrentClose(fHandle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue