1
0
Fork 0
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:
Mitchell Livingston 2010-04-06 01:44:38 +00:00
parent 909b710f04
commit f3f09f7488

View file

@ -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];
}