Ignore:
Timestamp:
Jul 22, 2006, 4:38:05 PM (16 years ago)
Author:
livings124
Message:

New prefs setting to keep the window sized perfectly for the current number of transfers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r558 r655  
    112112    [fImportFolderPopUp setEnabled: autoImport];
    113113   
     114    //set auto size
     115    [fAutoSizeCheck setState: [fDefaults boolForKey: @"AutoSize"]];
     116   
    114117    //set bind port
    115118    int bindPort = [fDefaults integerForKey: @"BindPort"];
     
    632635        modalForWindow: [self window] modalDelegate: self didEndSelector:
    633636        @selector(importFolderSheetClosed:returnCode:contextInfo:) contextInfo: nil];
     637}
     638
     639- (void) setAutoSize: (id) sender
     640{
     641    [fDefaults setBool: [sender state] forKey: @"AutoSize"];
     642   
     643    [[NSNotificationCenter defaultCenter] postNotificationName: @"AutoSizeSettingChange" object: self];
    634644}
    635645
Note: See TracChangeset for help on using the changeset viewer.