Ignore:
Timestamp:
May 28, 2012, 8:16:43 PM (10 years ago)
Author:
livings124
Message:

hide the filter field and check/uncheck all buttons for single-file torrents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AddWindowController.m

    r13309 r13324  
    9393    [fIconView setImage: [fTorrent icon]];
    9494   
    95     [fFileFilterField setEnabled: [fTorrent isFolder]];
    96    
    97     [self updateCheckButtons: nil];
     95    if (![fTorrent isFolder])
     96    {
     97        [fFileFilterField setHidden: YES];
     98        [fCheckAllButton setHidden: YES];
     99        [fUncheckAllButton setHidden: YES];
     100       
     101        NSRect scrollFrame = [fFileScrollView frame];
     102        const CGFloat diff = NSMinY([fFileScrollView frame]) - NSMinY([fFileFilterField frame]);
     103        scrollFrame.origin.y -= diff;
     104        scrollFrame.size.height += diff;
     105        [fFileScrollView setFrame: scrollFrame];
     106    }
     107    else
     108        [self updateCheckButtons: nil];
    98109   
    99110    [self setGroupsMenu];
Note: See TracChangeset for help on using the changeset viewer.