mirror of
https://github.com/transmission/transmission
synced 2025-03-06 19:48:15 +00:00
return of double-click for inspector, double-click icon to reveal file, and double-click progress string to toggle selected and total status
This commit is contained in:
parent
fe9cabbe4b
commit
1f862a70e6
2 changed files with 18 additions and 16 deletions
1
NEWS
1
NEWS
|
@ -8,6 +8,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
|
|||
- All Platforms:
|
||||
+ Fix 1.00 freezing issue
|
||||
+ Fix 1.00 assertion failure
|
||||
+ Improve initial connection speed
|
||||
+ Improve reconnection to peers with imperfect network connections
|
||||
+ Fix crashes on architectures that require strict alignment
|
||||
- OS X:
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
|
||||
- (void) mouseDown: (NSEvent *) event
|
||||
{
|
||||
NSLog(@"down");
|
||||
fClickPoint = [self convertPoint: [event locationInWindow] fromView: nil];
|
||||
|
||||
if ([self pointInActionRect: fClickPoint])
|
||||
|
@ -127,13 +128,26 @@
|
|||
}
|
||||
|
||||
[super mouseDown: event];
|
||||
|
||||
if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint))
|
||||
{
|
||||
if ([self pointInProgressRect: fClickPoint])
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"DisplayStatusProgressSelected"] forKey: @"DisplayStatusProgressSelected"];
|
||||
[self reloadData];
|
||||
}
|
||||
else if ([self pointInIconRect: fClickPoint])
|
||||
[[fTorrents objectAtIndex: [self rowAtPoint: fClickPoint]] revealData];
|
||||
else if (![self pointInActionRect: fClickPoint])
|
||||
[fController showInfo: nil];
|
||||
else;
|
||||
}
|
||||
else;
|
||||
}
|
||||
}
|
||||
|
||||
#warning not working on Leopard
|
||||
- (void) mouseUp: (NSEvent *) event
|
||||
{
|
||||
//NSLog(@"up");
|
||||
NSPoint point = [self convertPoint: [event locationInWindow] fromView: nil];
|
||||
int row = [self rowAtPoint: point], oldRow = [self rowAtPoint: fClickPoint];
|
||||
|
||||
|
@ -155,19 +169,6 @@
|
|||
}
|
||||
else if (row == oldRow && [self pointInRevealRect: point] && [self pointInRevealRect: fClickPoint])
|
||||
[[fTorrents objectAtIndex: row] revealData];
|
||||
else if ([event clickCount] == 2 && !NSEqualPoints(fClickPoint, NSZeroPoint))
|
||||
{
|
||||
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];
|
||||
else;
|
||||
}
|
||||
else;
|
||||
|
||||
[super mouseUp: event];
|
||||
|
|
Loading…
Add table
Reference in a new issue