Changeset 518


Ignore:
Timestamp:
Jul 4, 2006, 6:42:12 PM (16 years ago)
Author:
livings124
Message:

More cleanup with updating inspector.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r498 r518  
    142142- (void) attemptToStartMultipleAuto: (NSArray *) torrents;
    143143
    144 - (void) reloadInspector: (NSNotification *) notification;
     144- (void) reloadInspectorSettings: (NSNotification *) notification;
    145145
    146146- (void) sleepCallBack: (natural_t) messageType argument:
  • trunk/macosx/Controller.m

    r515 r518  
    232232   
    233233    //change that just impacts the inspector
    234     [nc addObserver: self selector: @selector(reloadInspector:)
     234    [nc addObserver: self selector: @selector(reloadInspectorSettings:)
    235235                    name: @"TorrentSettingChange" object: nil];
    236236
     
    247247    [fWindow makeKeyAndOrderFront: nil];
    248248
    249     [self reloadInspector: nil];
     249    //load info for no torrents
     250    [fInfoController updateInfoForTorrents: [NSArray array]];
    250251    if ([fDefaults boolForKey: @"InfoVisible"])
    251252        [self showInfo: nil];
     
    11221123}
    11231124
    1124 - (void) reloadInspector: (NSNotification *) notification
    1125 {
    1126     [fInfoController updateInfoForTorrents: [self torrentsAtIndexes: [fTableView selectedRowIndexes]]];
     1125- (void) reloadInspectorSettings: (NSNotification *) notification
     1126{
     1127    [fInfoController updateInfoSettings];
    11271128}
    11281129
     
    12391240- (void) tableViewSelectionDidChange: (NSNotification *) notification
    12401241{
    1241     [self reloadInspector: nil];
     1242    [fInfoController updateInfoForTorrents: [self torrentsAtIndexes: [fTableView selectedRowIndexes]]];
    12421243}
    12431244
Note: See TracChangeset for help on using the changeset viewer.