1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

readd the tooltips to the filter buttons

This commit is contained in:
Mitchell Livingston 2007-11-06 21:03:20 +00:00
parent 90bd00f0c3
commit 44aa1505d4
2 changed files with 10 additions and 6 deletions

2
NEWS
View file

@ -2,7 +2,7 @@ NEWS file for Transmission <http://transmission.m0k.org/>
1.00 (zzzz/xx/yy)
- All Platforms:
+ UPnP now performed with MiniUPnP
+ UPnP now performed by MiniUPnP
- OS X:
+ Leopard: Time Machine will ignore incomplete downloads
+ Pieces Bar (return of Advanced Bar)

View file

@ -1856,11 +1856,15 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
[tempTorrents setArray: fTorrents];
//set buttons with counts
#warning reimplement
/*[fNoFilterButton setCount: [fTorrents count]];
[fDownloadFilterButton setCount: downloading];
[fSeedFilterButton setCount: seeding];
[fPauseFilterButton setCount: paused];*/
#warning make better
[fNoFilterButton setToolTip: [fTorrents count] == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
: [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), [fTorrents count]]];
[fDownloadFilterButton setToolTip: downloading == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
: [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), downloading]];
[fSeedFilterButton setToolTip: seeding == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
: [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), seeding]];
[fPauseFilterButton setToolTip: paused == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
: [NSString stringWithFormat: NSLocalizedString(@"%d Transfers", "Filter Bar Button -> tool tip"), paused]];
NSString * searchString = [fSearchFilterField stringValue];
if ([searchString length] > 0)