Changeset 1024 for trunk/macosx


Ignore:
Timestamp:
Oct 21, 2006, 8:09:28 PM (15 years ago)
Author:
livings124
Message:

Some cleanup here and there.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1015 r1024  
    5555
    5656#define UPDATE_UI_SECONDS           1.0
    57 #define AUTO_SPEED_LIMIT_SECONDS    10.0
     57#define AUTO_SPEED_LIMIT_SECONDS    5.0
    5858
    5959#define WEBSITE_URL @"http://transmission.m0k.org/"
     
    13291329    NSCalendarDate * currentDate = [NSCalendarDate calendarDate];
    13301330    if ([currentDate minuteOfHour] == 0 && [currentDate secondOfMinute] < AUTO_SPEED_LIMIT_SECONDS
    1331             && [currentDate hourOfDay] == (fSpeedLimitEnabled ? [fDefaults integerForKey: @"SpeedLimitAutoOffHour"]
    1332                                             : [fDefaults integerForKey: @"SpeedLimitAutoOnHour"]))
     1331            && [currentDate hourOfDay] == [fDefaults integerForKey: fSpeedLimitEnabled
     1332                                            ? @"SpeedLimitAutoOffHour" : @"SpeedLimitAutoOnHour"])
    13331333    {
    13341334        [self toggleSpeedLimit: nil];
    13351335       
    1336         [GrowlApplicationBridge notifyWithTitle: [@"Speed Limit Auto " stringByAppendingString:
    1337             fSpeedLimitEnabled ? @"Enabled" : @"Disabled"] description: @"Bandwidth settings changed"
     1336        [GrowlApplicationBridge notifyWithTitle: fSpeedLimitEnabled
     1337            ? @"Speed Limit Auto Enabled" : @"Speed Limit Auto Disabled"
     1338            description: @"Bandwidth settings changed"
    13381339            notificationName: GROWL_AUTO_SPEED_LIMIT iconData: nil priority: 0 isSticky: NO clickContext: nil];
    13391340    }
  • trunk/macosx/InfoWindowController.m

    r1023 r1024  
    4646#define TAB_OPTIONS_HEIGHT 83.0
    4747
     48#define INVALID -99
     49
    4850@interface InfoWindowController (Private)
    4951
     
    323325        NSEnumerator * enumerator = [fTorrents objectEnumerator];
    324326        Torrent * torrent = [enumerator nextObject]; //first torrent
    325         const int INVALID = -99;
     327       
    326328        int ratioSetting = [torrent stopRatioSetting];
    327329        float ratioLimit = [torrent ratioLimit];
Note: See TracChangeset for help on using the changeset viewer.