mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +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
|
@ -209,10 +209,13 @@ enum
|
|||
|
||||
- (void) mouseDown: (NSEvent *) event
|
||||
{
|
||||
const BOOL availability = ![[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
|
||||
[[NSUserDefaults standardUserDefaults] setBool: availability forKey: @"PiecesViewShowAvailability"];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdatePiecesView" object: self];
|
||||
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