Changeset 728


Ignore:
Timestamp:
Aug 6, 2006, 8:18:00 PM (15 years ago)
Author:
livings124
Message:

number of torrents shown in status bar now changes if filtering just by using filter text field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r727 r728  
    655655                title = [NSString stringWithFormat: @"Comfirm Removal of %d Transfers", selected];
    656656                if (selected == active)
    657                     message = [NSString stringWithFormat:
    658                         @"There are %d active transfers.", active];
     657                    message = [NSString stringWithFormat: @"There are %d active transfers.", active];
    659658                else
    660                     message = [NSString stringWithFormat:
    661                         @"There are %d transfers (%d active).", selected, active];
     659                    message = [NSString stringWithFormat: @"There are %d transfers (%d active).", selected, active];
    662660                message = [message stringByAppendingString:
    663661                    @" Once removed, continuing the transfers will require the torrent files."
     
    11051103   
    11061104    NSString * searchString = [fSearchFilterField stringValue];
    1107     if (![searchString isEqualToString: @""])
    1108     {
     1105    if ([searchString length] > 0)
     1106    {
     1107        filtering = YES;
     1108       
    11091109        int i;
    11101110        for (i = [tempTorrents count] - 1; i >= 0; i--)
     
    20842084    //enable copy torrent file item
    20852085    if (action == @selector(copyTorrentFile:))
    2086     {
    20872086        return canUseMenu && [fTableView numberOfSelectedRows] > 0;
    2088     }
    20892087
    20902088    return YES;
     
    21892187    frame.origin.y -= (newHeight - frame.size.height);
    21902188    frame.size.height = newHeight;
    2191    
    21922189    return frame;
    21932190}
     
    22102207- (NSSize) windowWillResize: (NSWindow *) sender toSize: (NSSize) proposedFrameSize
    22112208{
     2209    //only resize horizontally if autosize is enabled
    22122210    if ([fDefaults boolForKey: @"AutoSize"])
    22132211        proposedFrameSize.height = [fWindow frame].size.height;
     
    22182216{
    22192217    //hide search filter if it overlaps filter buttons
    2220     NSRect buttonFrame = [fPauseFilterButton frame];
    2221     [fSearchFilterField setHidden: NSMaxX(buttonFrame) + 2.0 > [fSearchFilterField frame].origin.x];
     2218    [fSearchFilterField setHidden: NSMaxX([fPauseFilterButton frame]) + 2.0 > [fSearchFilterField frame].origin.x];
    22222219}
    22232220
Note: See TracChangeset for help on using the changeset viewer.