Ignore:
Timestamp:
Mar 5, 2009, 10:48:01 PM (13 years ago)
Author:
livings124
Message:

add an option in the per-torrent action menu to follow the global bandwidth limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r8029 r8036  
    556556    [self createFileMenu: fActionMenu forFiles: [fMenuTorrent fileList]];
    557557   
     558    //update global limit check
     559    [fGlobalLimitItem setState: [fMenuTorrent usesGlobalSpeedLimit] ? NSOnState : NSOffState];
     560   
    558561    //place menu below button
    559562    NSRect rect = [fTorrentCell iconRectForBounds: [self rectOfRow: row]];
     
    581584        return;
    582585   
    583     #warning add menu item for global limit
    584586    if (menu == fUploadMenu || menu == fDownloadMenu)
    585587    {
     
    736738}
    737739
     740- (void) setGlobalLimit: (id) sender
     741{
     742    [fMenuTorrent setUseGlobalSpeedLimit: [sender state] != NSOnState];
     743   
     744    [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateOptions" object: nil];
     745}
     746
    738747- (void) setQuickRatioMode: (id) sender
    739748{
Note: See TracChangeset for help on using the changeset viewer.