mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
double click progress string in main window instead of single click to toggle it
This commit is contained in:
parent
ab154c3971
commit
433404eff2
1 changed files with 7 additions and 9 deletions
|
@ -141,14 +141,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
if ([self pointInProgressRect: fClickPoint])
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"]
|
||||
forKey: @"DisplayStatusProgressSelected"];
|
||||
fClickPoint = NSZeroPoint;
|
||||
[self reloadData];
|
||||
}
|
||||
else if ([self pointInMinimalStatusRect: fClickPoint])
|
||||
if ([self pointInMinimalStatusRect: fClickPoint])
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"DisplaySmallStatusRegular"] forKey: @"DisplaySmallStatusRegular"];
|
||||
fClickPoint = NSZeroPoint;
|
||||
|
@ -187,7 +180,12 @@
|
|||
[[fTorrents objectAtIndex: row] revealData];
|
||||
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];
|
||||
else if (![self pointInActionRect: point])
|
||||
[fController showInfo: nil];
|
||||
|
|
Loading…
Reference in a new issue