mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
enable queue menu items for queued seeds
This commit is contained in:
parent
c0174bd8d5
commit
f23d2aa950
1 changed files with 4 additions and 4 deletions
|
@ -2355,13 +2355,13 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
//enable resume all waiting item
|
//enable resume all waiting item
|
||||||
if (action == @selector(resumeWaitingTorrents:))
|
if (action == @selector(resumeWaitingTorrents:))
|
||||||
{
|
{
|
||||||
if (![fDefaults boolForKey: @"Queue"])
|
if (![fDefaults boolForKey: @"Queue"] && ![fDefaults boolForKey: @"QueueSeed"])
|
||||||
return NO;
|
return NO;
|
||||||
|
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
if ([torrent waitingToStart])
|
if (![torrent isActive] && [torrent waitingToStart])
|
||||||
return YES;
|
return YES;
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
@ -2369,14 +2369,14 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
//enable resume selected waiting item
|
//enable resume selected waiting item
|
||||||
if (action == @selector(resumeSelectedTorrentsNoWait:))
|
if (action == @selector(resumeSelectedTorrentsNoWait:))
|
||||||
{
|
{
|
||||||
if (![fDefaults boolForKey: @"Queue"])
|
if (![fDefaults boolForKey: @"Queue"] && ![fDefaults boolForKey: @"QueueSeed"])
|
||||||
return NO;
|
return NO;
|
||||||
|
|
||||||
NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
|
NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
{
|
{
|
||||||
if ([torrent isPaused] && [torrent progress] < 1.0)
|
if (![torrent isActive])
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
return NO;
|
return NO;
|
||||||
|
|
Loading…
Add table
Reference in a new issue