Changeset 2825


Ignore:
Timestamp:
Aug 18, 2007, 12:12:26 AM (15 years ago)
Author:
livings124
Message:

add preset limits to torrent action menu speed limits

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r2824 r2825  
    3535        <array>
    3636                <integer>1936</integer>
     37                <integer>29</integer>
    3738                <integer>21</integer>
    38                 <integer>29</integer>
    39                 <integer>1041</integer>
    4039        </array>
    4140        <key>IBSystem Version</key>
  • trunk/macosx/TorrentTableView.m

    r2824 r2825  
    322322   
    323323    //set file menu
    324     #warning localize
    325324    NSMenuItem * fileMenuItem = [[NSMenuItem alloc] initWithTitle: NSLocalizedString(@"Files",
    326325                                    "torrent action context menu -> files menu") action: NULL keyEquivalent: @""];
     
    451450- (void) setQuickLimit: (id) sender
    452451{
    453    
     452    BOOL upload = [sender menu] == fUploadMenu;
     453    [fMenuTorrent setSpeedMode: TR_SPEEDLIMIT_SINGLE upload: upload];
     454    [fMenuTorrent setSpeedLimit: [[sender title] intValue] upload: upload];
     455   
     456    [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateSettings" object: nil];
    454457}
    455458
Note: See TracChangeset for help on using the changeset viewer.