double click progress string in main window instead of single click to toggle it

This commit is contained in:
Mitchell Livingston 2007-10-08 11:51:58 +00:00
parent ab154c3971
commit 433404eff2
1 changed files with 7 additions and 9 deletions

View File

@ -141,14 +141,7 @@
} }
else else
{ {
if ([self pointInProgressRect: fClickPoint]) if ([self pointInMinimalStatusRect: fClickPoint])
{
[fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"]
forKey: @"DisplayStatusProgressSelected"];
fClickPoint = NSZeroPoint;
[self reloadData];
}
else if ([self pointInMinimalStatusRect: fClickPoint])
{ {
[fDefaults setBool: ![fDefaults boolForKey: @"DisplaySmallStatusRegular"] forKey: @"DisplaySmallStatusRegular"]; [fDefaults setBool: ![fDefaults boolForKey: @"DisplaySmallStatusRegular"] forKey: @"DisplaySmallStatusRegular"];
fClickPoint = NSZeroPoint; fClickPoint = NSZeroPoint;
@ -187,7 +180,12 @@
[[fTorrents objectAtIndex: row] revealData]; [[fTorrents objectAtIndex: row] revealData];
else if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint)) else if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint))
{ {
if ([self pointInIconRect: point]) if ([self pointInProgressRect: fClickPoint])
{
[fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"] forKey: @"DisplayStatusProgressSelected"];
[self reloadData];
}
else if ([self pointInIconRect: point])
[[fTorrents objectAtIndex: row] revealData]; [[fTorrents objectAtIndex: row] revealData];
else if (![self pointInActionRect: point]) else if (![self pointInActionRect: point])
[fController showInfo: nil]; [fController showInfo: nil];