Changeset 382


Ignore:
Timestamp:
Jun 16, 2006, 3:45:12 AM (16 years ago)
Author:
livings124
Message:

Just update the value when there is a change....it's modified only when torrent counts change and just updates a string...nothing too strenuous

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r361 r382  
    8686- (void) awakeFromNib
    8787{
    88     [fPrefsController setPrefsWindow: fLib];
     88    [fPrefsController setPrefs: fLib];
    8989   
    9090    [fAdvancedBarItem setState: [fDefaults
     
    418418- (void) torrentNumberChanged
    419419{
    420     if (fStatusBarVisible)
    421     {
    422         int count = [fTorrents count];
    423         [fTotalTorrentsField setStringValue: [NSString stringWithFormat:
     420    int count = [fTorrents count];
     421    [fTotalTorrentsField setStringValue: [NSString stringWithFormat:
    424422                    @"%d Transfer%s", count, count == 1 ? "" : "s"]];
    425     }
    426423}
    427424
     
    10231020   
    10241021    //reloads stats
    1025     [self torrentNumberChanged];
    10261022    [self updateUI: nil];
    10271023   
  • trunk/macosx/PrefsController.h

    r310 r382  
    5252}
    5353
    54 - (void) setPrefsWindow: (tr_handle_t *) handle;
     54- (void) setPrefs: (tr_handle_t *) handle;
    5555
    5656- (void) setShowMessage:        (id) sender;
  • trunk/macosx/PrefsController.m

    r357 r382  
    7171}
    7272
    73 - (void) setPrefsWindow: (tr_handle_t *) handle
     73- (void) setPrefs: (tr_handle_t *) handle
    7474{
    7575    fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
Note: See TracChangeset for help on using the changeset viewer.