mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
only toggle the pieces view when a torrent is selected
This commit is contained in:
parent
909b710f04
commit
f3f09f7488
1 changed files with 7 additions and 4 deletions
|
@ -208,11 +208,14 @@ enum
|
|||
}
|
||||
|
||||
- (void) mouseDown: (NSEvent *) event
|
||||
{
|
||||
if (fTorrent)
|
||||
{
|
||||
const BOOL availability = ![[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
||||
[[NSUserDefaults standardUserDefaults] setBool: availability forKey: @"PiecesViewShowAvailability"];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdatePiecesView" object: self];
|
||||
}
|
||||
|
||||
[super mouseDown: event];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue