Changeset 1089 for trunk/macosx/Badger.m


Ignore:
Timestamp:
Nov 14, 2006, 5:27:43 AM (15 years ago)
Author:
livings124
Message:

When loading from url, if set to download at the torrent location ask the user for a location instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r1088 r1089  
    100100
    101101    //set upload and download rate badges
    102     NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
    103     NSString * uploadRateString = uploadRate >= 0.1 && [defaults boolForKey: @"BadgeUploadRate"]
    104                                     ? [NSString stringForSpeedAbbrev: uploadRate] : nil,
    105             * downloadRateString = downloadRate >= 0.1 && [defaults boolForKey: @"BadgeDownloadRate"]
    106                                     ? [NSString stringForSpeedAbbrev: downloadRate] : nil;
     102    NSString * uploadRateString = uploadRate >= 0.1 && [[NSUserDefaults standardUserDefaults]
     103                    boolForKey: @"BadgeUploadRate"] ? [NSString stringForSpeedAbbrev: uploadRate] : nil,
     104            * downloadRateString = downloadRate >= 0.1 && [[NSUserDefaults standardUserDefaults]
     105                    boolForKey: @"BadgeDownloadRate"] ? [NSString stringForSpeedAbbrev: downloadRate] : nil;
    107106   
    108107    if (uploadRateString || downloadRateString)
Note: See TracChangeset for help on using the changeset viewer.