Changeset 878


Ignore:
Timestamp:
Sep 22, 2006, 1:09:31 AM (15 years ago)
Author:
livings124
Message:

For waiting torrents, button in table will now be a pause button to remove from queue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nat-traversal/macosx/TorrentTableView.m

    r729 r878  
    122122        Torrent * torrent = [fTorrents objectAtIndex: row];
    123123
    124                 if ([torrent isPaused])
     124        if ([torrent isActive] || ([torrent isPaused] && [torrent waitingToStart]))
     125            [fController stopTorrents: [NSArray arrayWithObject: torrent]];
     126                else if ([torrent isPaused])
    125127                        [fController resumeTorrents: [NSArray arrayWithObject: torrent]];
    126                 else if ([torrent isActive])
    127             [fController stopTorrents: [NSArray arrayWithObject: torrent]];
    128128                else;
    129129    }
     
    224224        rect  = [self pauseRectForRow: i];
    225225
    226         if ([torrent isPaused])
     226        if ([torrent isActive] || ([torrent isPaused] && [torrent waitingToStart]))
     227            image = NSPointInRect(fClickPoint, rect) ? fPauseOnIcon : fPauseOffIcon;
     228        else if ([torrent isPaused])
    227229            image = NSPointInRect(fClickPoint, rect) ? fResumeOnIcon : fResumeOffIcon;
    228         else if ([torrent isActive])
    229             image = NSPointInRect(fClickPoint, rect) ? fPauseOnIcon : fPauseOffIcon;
    230230        else
    231231            image = nil;
Note: See TracChangeset for help on using the changeset viewer.