Changeset 1765


Ignore:
Timestamp:
Apr 20, 2007, 11:07:10 PM (15 years ago)
Author:
livings124
Message:

Disable the stop ratio once it is reached (while seeding).

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1764 r1765  
    17771777    [self updateTorrentsInQueue];
    17781778    [fInfoController updateInfoStats];
     1779    [fInfoController updateRatioForTorrent: torrent];
    17791780   
    17801781    if ([fDefaults boolForKey: @"PlaySeedingSound"])
  • trunk/macosx/InfoWindowController.h

    r1645 r1765  
    6565- (void) updateInfoStats;
    6666
     67- (void) updateRatioForTorrent: (Torrent *) torrent;
     68
    6769- (void) setNextTab;
    6870- (void) setPreviousTab;
  • trunk/macosx/InfoWindowController.m

    r1755 r1765  
    434434- (void) updateInfoSettings
    435435{
    436     int numberSelected = [fTorrents count];
    437 
    438     if (numberSelected > 0)
     436    if ([fTorrents count] > 0)
    439437    {
    440438        Torrent * torrent;
     
    555553}
    556554
     555- (void) updateRatioForTorrent: (Torrent *) torrent
     556{
     557    if ([fTorrents containsObject: torrent])
     558        [self updateInfoSettings];
     559}
     560
    557561- (int) stateSettingToPopUpIndex: (int) index
    558562{
  • trunk/macosx/Torrent.m

    r1756 r1765  
    299299        fFinishedSeeding = YES;
    300300       
     301        [self setRatioSetting: NSOffState];
    301302        [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
    302303    }
Note: See TracChangeset for help on using the changeset viewer.