mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
in file selection, if you option click a file checkbox, it will select/deselect all
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user