parent
9a20ae1e96
commit
c96d7422fa
|
@ -72,7 +72,7 @@
|
||||||
NSTimer * fTimer;
|
NSTimer * fTimer;
|
||||||
|
|
||||||
NSTimer * fAutoImportTimer;
|
NSTimer * fAutoImportTimer;
|
||||||
NSArray * fAutoImportedNames;
|
NSArray * fAutoImportedNames;
|
||||||
|
|
||||||
BOOL fHasGrowl;
|
BOOL fHasGrowl;
|
||||||
Badger * fBadger;
|
Badger * fBadger;
|
||||||
|
@ -136,7 +136,7 @@
|
||||||
- (void) ratioGlobalChange: (NSNotification *) notification;
|
- (void) ratioGlobalChange: (NSNotification *) notification;
|
||||||
|
|
||||||
- (void) checkWaitingForStopped: (NSNotification *) notification;
|
- (void) checkWaitingForStopped: (NSNotification *) notification;
|
||||||
- (void) checkWaitingForFinished: (Torrent *) finishedTorrent;
|
- (void) checkToStartWaiting: (Torrent *) finishedTorrent;
|
||||||
- (void) torrentStartSettingChange: (NSNotification *) notification;
|
- (void) torrentStartSettingChange: (NSNotification *) notification;
|
||||||
- (void) globalStartSettingChange: (NSNotification *) notification;
|
- (void) globalStartSettingChange: (NSNotification *) notification;
|
||||||
|
|
||||||
|
|
|
@ -783,7 +783,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
if ([torrent justFinished])
|
if ([torrent justFinished])
|
||||||
{
|
{
|
||||||
[self checkWaitingForFinished: torrent];
|
[self checkToStartWaiting: torrent];
|
||||||
|
|
||||||
//notifications
|
//notifications
|
||||||
[self notifyGrowl: @"Download Complete" message: [[torrent name] stringByAppendingString:
|
[self notifyGrowl: @"Download Complete" message: [[torrent name] stringByAppendingString:
|
||||||
|
@ -1004,10 +1004,10 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
- (void) checkWaitingForStopped: (NSNotification *) notification
|
- (void) checkWaitingForStopped: (NSNotification *) notification
|
||||||
{
|
{
|
||||||
[self checkWaitingForFinished: [notification object]];
|
[self checkToStartWaiting: [notification object]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) checkWaitingForFinished: (Torrent *) finishedTorrent
|
- (void) checkToStartWaiting: (Torrent *) finishedTorrent
|
||||||
{
|
{
|
||||||
//don't try to start a transfer if there should be none waiting
|
//don't try to start a transfer if there should be none waiting
|
||||||
if (![[fDefaults stringForKey: @"StartSetting"] isEqualToString: @"Wait"])
|
if (![[fDefaults stringForKey: @"StartSetting"] isEqualToString: @"Wait"])
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue