mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
Now that sorting by stat sorts by progress, it should be resorted more often.
This commit is contained in:
parent
681ba0ed25
commit
c5955ed7ef
3 changed files with 11 additions and 23 deletions
|
@ -93,8 +93,7 @@ static void sleepCallBack( void * controller, io_service_t y,
|
|||
{
|
||||
[fPrefsController setPrefs: fLib];
|
||||
|
||||
[fAdvancedBarItem setState: [fDefaults
|
||||
boolForKey: @"UseAdvancedBar"] ? NSOnState : NSOffState];
|
||||
[fAdvancedBarItem setState: [fDefaults boolForKey: @"UseAdvancedBar"]];
|
||||
|
||||
fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Transmission Toolbar"];
|
||||
[fToolbar setDelegate: self];
|
||||
|
@ -476,8 +475,6 @@ static void sleepCallBack( void * controller, io_service_t y,
|
|||
}
|
||||
|
||||
[self updateUI: nil];
|
||||
if ([fSortType isEqualToString: @"State"])
|
||||
[self sortTorrents];
|
||||
[self updateTorrentHistory];
|
||||
}
|
||||
|
||||
|
@ -503,8 +500,6 @@ static void sleepCallBack( void * controller, io_service_t y,
|
|||
}
|
||||
|
||||
[self updateUI: nil];
|
||||
if ([fSortType isEqualToString: @"State"])
|
||||
[self sortTorrents];
|
||||
[self updateTorrentHistory];
|
||||
}
|
||||
|
||||
|
@ -737,13 +732,10 @@ static void sleepCallBack( void * controller, io_service_t y,
|
|||
[self notifyGrowl: [torrent name]];
|
||||
if( ![fWindow isKeyWindow] )
|
||||
fCompleted++;
|
||||
|
||||
if ([fSortType isEqualToString: @"State"])
|
||||
[self sortTorrents];
|
||||
}
|
||||
}
|
||||
|
||||
if ([fSortType isEqualToString: @"Progress"])
|
||||
if ([fSortType isEqualToString: @"Progress"] || [fSortType isEqualToString: @"State"])
|
||||
[self sortTorrents];
|
||||
else
|
||||
[fTableView reloadData];
|
||||
|
@ -932,9 +924,6 @@ static void sleepCallBack( void * controller, io_service_t y,
|
|||
|
||||
- (void) ratioSingleChange: (NSNotification *) notification
|
||||
{
|
||||
if ([fSortType isEqualToString: @"State"])
|
||||
[self sortTorrents];
|
||||
|
||||
//update info for changed ratio setting
|
||||
NSArray * torrents = [self torrentsAtIndexes: [fTableView selectedRowIndexes]];
|
||||
if ([torrents containsObject: [notification object]])
|
||||
|
|
|
@ -146,8 +146,7 @@
|
|||
|
||||
fStat = tr_torrentStat( fHandle );
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:
|
||||
@"TorrentRatioChanged" object: self];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentRatioChanged" object: self];
|
||||
}
|
||||
|
||||
[fProgressString setString: @""];
|
||||
|
|
|
@ -113,14 +113,14 @@
|
|||
else if( sameRow && [self pointInRevealRect: point]
|
||||
&& [self pointInRevealRect: fClickPoint] )
|
||||
[[fTorrents objectAtIndex: row] reveal];
|
||||
else
|
||||
if ([e clickCount] == 2)
|
||||
{
|
||||
if ([self pointInIconRect: point])
|
||||
[[fTorrents objectAtIndex: row] reveal];
|
||||
else
|
||||
[fController showInfo: nil];
|
||||
}
|
||||
else if ([e clickCount] == 2)
|
||||
{
|
||||
if ([self pointInIconRect: point])
|
||||
[[fTorrents objectAtIndex: row] reveal];
|
||||
else
|
||||
[fController showInfo: nil];
|
||||
}
|
||||
else;
|
||||
|
||||
[super mouseUp: e];
|
||||
|
||||
|
|
Loading…
Reference in a new issue