• allow to recheck cache even when torrent is active

• play around with the priority color
This commit is contained in:
Mitchell Livingston
2007-06-23 15:14:37 +00:00
parent 9d139eefe4
commit 49889c1cb5
5 changed files with 14 additions and 19 deletions

View File

@@ -1306,6 +1306,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
{
[torrent resetCache];
}
#warning reset queue?
}
- (void) showPreferenceWindow: (id) sender
@@ -2858,19 +2859,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
//enable reset cache item
if (action == @selector(resetCacheForSelectedTorrents:))
{
if (!canUseTable)
return NO;
NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
Torrent * torrent;
while ((torrent = [enumerator nextObject]))
{
if (![torrent isActive])
return YES;
}
return NO;
}
return canUseTable && [fTableView numberOfSelectedRows] > 0;
//enable move torrent file item
if (action == @selector(moveDataFiles:))