Changeset 668


Ignore:
Timestamp:
Jul 23, 2006, 2:42:54 PM (15 years ago)
Author:
livings124
Message:

Resize window when filtering with auto resize enabled.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r655 r668  
    2727@implementation BarButton
    2828
    29 //height of button should be made 17.0
     29//height of button should be 17.0
    3030- (id) initWithCoder: (NSCoder *) coder
    3131{
  • trunk/macosx/Controller.m

    r666 r668  
    341341   
    342342    [self applyFilter: nil];
     343   
     344    #warning repetitive
    343345    [self setAutoSize: nil];
    344346   
     
    527529    [fTotalTorrentsField setStringValue: [NSString stringWithFormat:
    528530        @"%d Transfer%s", count, count == 1 ? "" : "s"]];
    529    
    530     [self setWindowSizeToFit];
    531531}
    532532
     
    729729    }
    730730   
     731    [self torrentNumberChanged];
     732   
    731733    [self updateUI: nil];
     734    [self setWindowSizeToFit];
    732735   
    733736    [fTableView deselectAll: nil];
    734     [self torrentNumberChanged];
    735737   
    736738    [self updateTorrentHistory];
     
    11281130        [indexSet release];
    11291131    }
     1132   
     1133    [self setWindowSizeToFit];
    11301134}
    11311135
     
    21192123}
    21202124
     2125#warning remove?
    21212126- (void) setAutoSize: (NSNotification *) notification
    21222127{
     
    21272132{
    21282133    if ([fDefaults boolForKey: @"AutoSize"])
    2129         [fWindow setFrame: [self windowFrameForAmount: [fTorrents count]] display: YES animate: YES];
     2134        [fWindow setFrame: [self windowFrameForAmount: [fFilteredTorrents count]] display: YES animate: YES];
    21302135}
    21312136
Note: See TracChangeset for help on using the changeset viewer.