mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#4902 Check all/Uncheck all buttons in the inspector
This commit is contained in:
@@ -378,6 +378,20 @@ typedef enum
|
||||
[fOutline setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void) checkAll
|
||||
{
|
||||
NSIndexSet * indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTorrent fileCount])];
|
||||
[fTorrent setFileCheckState: NSOnState forIndexes: indexSet];
|
||||
[fOutline setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void) uncheckAll
|
||||
{
|
||||
NSIndexSet * indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTorrent fileCount])];
|
||||
[fTorrent setFileCheckState: NSOffState forIndexes: indexSet];
|
||||
[fOutline setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void) setPriority: (id) sender
|
||||
{
|
||||
tr_priority_t priority;
|
||||
|
||||
Reference in New Issue
Block a user