mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
allow folders of files to be enabled/disabled from the action button
This commit is contained in:
parent
54cd26c409
commit
20f33e82e2
2 changed files with 6 additions and 9 deletions
|
@ -823,7 +823,6 @@ static int static_lastid = 0;
|
|||
: [[self name] pathExtension]] retain];
|
||||
[fIcon setFlipped: YES];
|
||||
}
|
||||
|
||||
return fIcon;
|
||||
}
|
||||
|
||||
|
@ -1369,6 +1368,7 @@ static int static_lastid = 0;
|
|||
return [NSNumber numberWithInt: 2];
|
||||
}
|
||||
|
||||
#warning is progress different when seeding?
|
||||
- (NSNumber *) progressSortKey
|
||||
{
|
||||
float progress;
|
||||
|
|
|
@ -353,8 +353,6 @@
|
|||
NSImage * icon;
|
||||
if (!folder)
|
||||
{
|
||||
[item setAction: @selector(checkFile:)];
|
||||
|
||||
icon = [[dict objectForKey: @"Icon"] copy];
|
||||
[icon setFlipped: NO];
|
||||
}
|
||||
|
@ -376,18 +374,17 @@
|
|||
[item setImage: icon];
|
||||
[icon release];
|
||||
|
||||
[item setAction: @selector(checkFile:)];
|
||||
|
||||
[menu addItem: item];
|
||||
[item release];
|
||||
}
|
||||
else
|
||||
item = [menu itemWithTitle: name];
|
||||
|
||||
if (!folder)
|
||||
{
|
||||
NSIndexSet * indexSet = [dict objectForKey: @"Indexes"];
|
||||
[item setState: [fMenuTorrent checkForFiles: indexSet]];
|
||||
[item setEnabled: [fMenuTorrent canChangeDownloadCheckForFiles: indexSet]];
|
||||
}
|
||||
NSIndexSet * indexSet = [dict objectForKey: @"Indexes"];
|
||||
[item setState: [fMenuTorrent checkForFiles: indexSet]];
|
||||
[item setEnabled: [fMenuTorrent canChangeDownloadCheckForFiles: indexSet]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue