Ignore:
Timestamp:
Jun 17, 2006, 11:00:12 PM (16 years ago)
Author:
livings124
Message:

Minor efficiency improvements to action menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r384 r387  
    888888- (void) setQuickLimitGlobal: (id) sender
    889889{
    890     NSString * title = [sender title];
    891     [fPrefsController setQuickLimit: [[title substringToIndex: [title length]
    892                                                     - [@" KB/s" length]] intValue]
    893                     type: [sender menu] == fUploadMenu ? @"Upload" : @"Download"];
     890    [fPrefsController setQuickLimit: [[sender title] intValue]
     891        type: [sender menu] == fUploadMenu ? @"Upload" : @"Download"];
    894892}
    895893
     
    897895{
    898896    NSDictionary * dict = [notification object];
    899    
    900     BOOL enable = [[dict objectForKey: @"Enable"] boolValue];
    901     int limit = [[dict objectForKey: @"Limit"] intValue];
    902897   
    903898    NSMenuItem * limitItem, * noLimitItem;
     
    912907        noLimitItem = fDownloadNoLimitItem;
    913908    }
     909   
     910    BOOL enable = [[dict objectForKey: @"Enable"] boolValue];
    914911    [limitItem setState: enable ? NSOnState : NSOffState];
    915912    [noLimitItem setState: !enable ? NSOnState : NSOffState];
     
    14381435- (void) linkHomepage: (id) sender
    14391436{
    1440     [[NSWorkspace sharedWorkspace] openURL: [NSURL
    1441         URLWithString: WEBSITE_URL]];
     1437    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: WEBSITE_URL]];
    14421438}
    14431439
    14441440- (void) linkForums: (id) sender
    14451441{
    1446     [[NSWorkspace sharedWorkspace] openURL: [NSURL
    1447         URLWithString: FORUM_URL]];
     1442    [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: FORUM_URL]];
    14481443}
    14491444
Note: See TracChangeset for help on using the changeset viewer.