mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
in file selection, if you option click a file checkbox, it will select/deselect all
This commit is contained in:
parent
ab20e6d645
commit
8959463882
1 changed files with 7 additions and 2 deletions
|
@ -916,8 +916,13 @@
|
|||
if ([identifier isEqualToString: @"Check"])
|
||||
{
|
||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||
[torrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState
|
||||
forIndexes: [item objectForKey: @"Indexes"]];
|
||||
NSIndexSet * indexSet;
|
||||
if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
|
||||
indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [torrent fileCount])];
|
||||
else
|
||||
indexSet = [item objectForKey: @"Indexes"];
|
||||
|
||||
[torrent setFileCheckState: [object intValue] != NSOffState ? NSOnState : NSOffState forIndexes: indexSet];
|
||||
[fFileOutline reloadData];
|
||||
}
|
||||
else;
|
||||
|
|
Loading…
Reference in a new issue