mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#2041 bounce Downloads stack when downloads are complete
This commit is contained in:
@@ -1690,6 +1690,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
if (![fWindow isMainWindow])
|
||||
[fBadger incrementCompleted];
|
||||
|
||||
//bounce download stack
|
||||
[[NSDistributedNotificationCenter defaultCenter] postNotificationName: @"com.apple.DownloadFileFinished"
|
||||
object: [[torrent downloadFolder] stringByAppendingPathComponent: [torrent name]]];
|
||||
|
||||
if ([fDefaults boolForKey: @"QueueSeed"] && [self numToStartFromQueue: NO] <= 0)
|
||||
{
|
||||
[torrent stopTransfer];
|
||||
|
||||
Reference in New Issue
Block a user