diff --git a/macosx/Badger.m b/macosx/Badger.m index 6c38fbd1b..732b29bc7 100644 --- a/macosx/Badger.m +++ b/macosx/Badger.m @@ -85,10 +85,10 @@ { if ([NSApp isOnLeopardOrBetter]) { - BOOL badgeDownload = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"], - badgeUpload = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeUploadRate"]; - float downloadRate = badgeDownload ? tr_sessionGetPieceSpeed( fLib, TR_DOWN ) : 0.0f; - float uploadRate = badgeUpload ? tr_sessionGetPieceSpeed( fLib, TR_UP ) : 0.0f; + float downloadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"] + ? tr_sessionGetPieceSpeed(fLib, TR_DOWN) : 0.0f; + float uploadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"] + ? tr_sessionGetPieceSpeed(fLib, TR_UP) : 0.0f; //only update if the badged values change if ([(BadgeView *)[[NSApp dockTile] contentView] setRatesWithDownload: downloadRate upload: uploadRate]) @@ -151,8 +151,8 @@ //set upload and download rate badges NSString * downloadRateString = nil, * uploadRateString = nil; - float downloadRate = tr_sessionGetPieceSpeed( fLib, TR_DOWN ); - float uploadRate = tr_sessionGetPieceSpeed( fLib, TR_UP ); + float downloadRate = tr_sessionGetPieceSpeed(fLib, TR_DOWN), + uploadRate = tr_sessionGetPieceSpeed(fLib, TR_UP); if (checkDownload && downloadRate >= 0.1) downloadRateString = [NSString stringForSpeedAbbrev: downloadRate]; diff --git a/macosx/Controller.m b/macosx/Controller.m index 71ebc9bb7..71e310caa 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1507,11 +1507,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy if (![fStatusBar isHidden]) { //set rates - float downloadRate = tr_sessionGetPieceSpeed( fLib, TR_DOWN ); - float uploadRate = tr_sessionGetPieceSpeed( fLib, TR_UP ); - - [fTotalDLField setStringValue: [NSString stringForSpeed: downloadRate]]; - [fTotalULField setStringValue: [NSString stringForSpeed: uploadRate]]; + [fTotalDLField setStringValue: [NSString stringForSpeed: tr_sessionGetPieceSpeed(fLib, TR_DOWN)]]; + [fTotalULField setStringValue: [NSString stringForSpeed: tr_sessionGetPieceSpeed(fLib, TR_UP)]]; //set status button text NSString * statusLabel = [fDefaults stringForKey: @"StatusLabel"], * statusString; diff --git a/macosx/appcast/releasenotes.html b/macosx/appcast/releasenotes.html index 340b0935e..5acb5b9e2 100644 --- a/macosx/appcast/releasenotes.html +++ b/macosx/appcast/releasenotes.html @@ -19,15 +19,14 @@
+ Web Client Changes+ |
+
+
|
+
For a full list of changes, click here.