Changeset 1032 for trunk


Ignore:
Timestamp:
Oct 25, 2006, 1:31:49 PM (15 years ago)
Author:
livings124
Message:

Small fix for changing action menu values after prefs are changed.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PortChecker.m

    r1031 r1032  
    117117            else if ([portStatus isEqualToString: @"closed"])
    118118                [self callBackWithStatus: PORT_STATUS_CLOSED];
    119             else {
     119            else
     120            {
    120121                NSLog(@"Unable to get port status: unknown port state");
    121122                [self callBackWithStatus: PORT_STATUS_ERROR];
  • trunk/macosx/PrefsController.m

    r1030 r1032  
    507507   
    508508    BOOL check = [sender state] == NSOnState;
     509    [fDefaults setBool: check forKey: key];
     510   
    509511    [self setLimit: field];
    510512    [field setEnabled: check];
    511    
    512     [fDefaults setBool: check forKey: key];
    513513}
    514514
     
    665665{
    666666    BOOL check = [sender state] == NSOnState;
     667    [fDefaults setBool: check forKey: @"RatioCheck"];
     668   
    667669    [self setRatio: fRatioField];
    668670    [fRatioField setEnabled: check];
    669    
    670     [fDefaults setBool: check forKey: @"RatioCheck"];
    671671}
    672672
Note: See TracChangeset for help on using the changeset viewer.