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