Changeset 123


Ignore:
Timestamp:
Feb 10, 2006, 8:06:39 PM (16 years ago)
Author:
titer
Message:

Simplifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r120 r123  
    185185{
    186186    int active = fDownloading + fSeeding;
    187     if (active > 0 && [[NSUserDefaults standardUserDefaults] boolForKey: @"CheckQuit"])
     187    if (active > 0 && [fDefaults boolForKey: @"CheckQuit"])
    188188    {
    189189        NSString * message = active == 1
     
    591591
    592592    //badge dock
    593     NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
    594593    [fBadger updateBadgeWithCompleted: fCompleted
    595         uploadRate: ul >= 0.1 && [defaults boolForKey: @"BadgeUploadRate"]
     594        uploadRate: ul >= 0.1 && [fDefaults boolForKey: @"BadgeUploadRate"]
    596595          ? [NSString stringForSpeedAbbrev: ul] : nil
    597         downloadRate: dl >= 0.1 && [defaults boolForKey: @"BadgeDownloadRate"]
     596        downloadRate: dl >= 0.1 && [fDefaults boolForKey: @"BadgeDownloadRate"]
    598597          ? [NSString stringForSpeedAbbrev: dl] : nil];
    599598}
Note: See TracChangeset for help on using the changeset viewer.