Changeset 106


Ignore:
Timestamp:
Feb 8, 2006, 6:10:42 PM (15 years ago)
Author:
titer
Message:

Removed 'BadgeCompleted?' option - who'd want to disable it anyway?

Location:
trunk/macosx
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r103 r106  
    612612    //badge dock
    613613    NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
    614     [fBadger updateBadgeWithCompleted: [defaults boolForKey: @"BadgeCompleted"] ? fCompleted : 0
    615                     uploadRate: ul >= 0.1 && [defaults boolForKey: @"BadgeUploadRate"] ? [NSString stringForSpeedAbbrev: ul] : nil
    616                     downloadRate: dl >= 0.1 && [defaults boolForKey: @"BadgeDownloadRate"] ? [NSString stringForSpeedAbbrev: dl] : nil];
     614    [fBadger updateBadgeWithCompleted: fCompleted
     615        uploadRate: ul >= 0.1 && [defaults boolForKey: @"BadgeUploadRate"]
     616          ? [NSString stringForSpeedAbbrev: ul] : nil
     617        downloadRate: dl >= 0.1 && [defaults boolForKey: @"BadgeDownloadRate"]
     618          ? [NSString stringForSpeedAbbrev: dl] : nil];
    617619}
    618620
  • trunk/macosx/Defaults.plist

    r58 r106  
    33<plist version="1.0">
    44<dict>
    5         <key>BadgeCompleted</key>
    6         <true/>
    75        <key>BadgeDownloadRate</key>
    86        <false/>
  • trunk/macosx/English.lproj/MainMenu.nib/classes.nib

    r94 r106  
    7474            LANGUAGE = ObjC;
    7575            OUTLETS = {
    76                 fBadgeCompletedCheck = NSButton;
    7776                fBadgeDownloadRateCheck = NSButton;
    7877                fBadgeUploadRateCheck = NSButton;
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r94 r106  
    1616                <string>54 521 112 118 0 0 1152 842 </string>
    1717                <key>783</key>
    18                 <string>456 452 470 265 0 0 1440 878 </string>
     18                <string>483 459 420 250 0 0 1440 878 </string>
    1919                <key>796</key>
    20                 <string>412 490 470 129 0 0 1280 832 </string>
     20                <string>484 520 420 129 0 0 1440 878 </string>
    2121                <key>825</key>
    2222                <string>544 501 155 107 0 0 1280 832 </string>
  • trunk/macosx/PrefsController.h

    r58 r106  
    3838    IBOutlet NSButton       * fQuitCheck;
    3939    IBOutlet NSButton       * fRemoveCheck;
    40     IBOutlet NSButton       * fBadgeCompletedCheck;
    4140    IBOutlet NSButton       * fBadgeDownloadRateCheck;
    4241    IBOutlet NSButton       * fBadgeUploadRateCheck;                           
  • trunk/macosx/PrefsController.m

    r85 r106  
    132132
    133133    //set dock badging
    134     [fBadgeCompletedCheck setState: [fDefaults boolForKey: @"BadgeCompleted"]];
    135134    [fBadgeDownloadRateCheck setState: [fDefaults boolForKey: @"BadgeDownloadRate"]];
    136135    [fBadgeUploadRateCheck setState: [fDefaults boolForKey: @"BadgeUploadRate"]];
     
    268267    BOOL state = [sender state];
    269268   
    270     if (sender == fBadgeCompletedCheck)
    271         [fDefaults setBool: state forKey: @"BadgeCompleted"];
    272     else if (sender == fBadgeDownloadRateCheck)
     269    if (sender == fBadgeDownloadRateCheck)
    273270        [fDefaults setBool: state forKey: @"BadgeDownloadRate"];
    274271    else if (sender == fBadgeUploadRateCheck)
Note: See TracChangeset for help on using the changeset viewer.