Changeset 12619


Ignore:
Timestamp:
Aug 4, 2011, 2:03:58 AM (10 years ago)
Author:
livings124
Message:

rename updateTorrentsInQueue to a more generic (and appropriate) name

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r12612 r12619  
    182182
    183183- (void) updateUI;
     184- (void) fullUpdateUI;
    184185
    185186- (void) setBottomCountText: (BOOL) filtering;
    186 
    187 - (void) updateTorrentsInQueue;
    188187
    189188- (void) torrentFinishedDownloading: (NSNotification *) notification;
  • trunk/macosx/Controller.m

    r12618 r12619  
    508508   
    509509#warning look at this
    510     [nc addObserver: self selector: @selector(updateTorrentsInQueue)
     510    [nc addObserver: self selector: @selector(fullUpdateUI)
    511511                    name: @"UpdateQueue" object: nil];
    512512   
     
    908908    }
    909909
    910     [self updateTorrentsInQueue];
     910    [self fullUpdateUI];
    911911}
    912912
     
    922922        [torrent release];
    923923       
    924         [self updateTorrentsInQueue];
     924        [self fullUpdateUI];
    925925    }
    926926    else
     
    977977    }
    978978
    979     [self updateTorrentsInQueue];
     979    [self fullUpdateUI];
    980980}
    981981
     
    991991        [torrent release];
    992992       
    993         [self updateTorrentsInQueue];
     993        [self fullUpdateUI];
    994994    }
    995995    else
     
    11971197        [torrent startTransfer];
    11981198   
    1199     [self updateTorrentsInQueue];
     1199    [self fullUpdateUI];
    12001200}
    12011201
     
    12221222        [torrent startTransferNoQueue];
    12231223   
    1224     [self updateTorrentsInQueue];
     1224    [self fullUpdateUI];
    12251225}
    12261226
     
    12451245        [torrent stopTransfer];
    12461246   
    1247     [self updateTorrentsInQueue];
     1247    [self fullUpdateUI];
    12481248}
    12491249
     
    13441344    [fTorrents removeObjectsInArray: torrents];
    13451345   
    1346     //if not removed from displayed torrents, updateTorrentsInQueue might cause a crash
     1346    //if not removed from displayed torrents, fullUpdateUI might cause a crash
    13471347    if ([fDisplayedTorrents count] > 0)
    13481348    {
     
    13721372    [fTableView selectValues: selectedValues];
    13731373   
    1374     [self updateTorrentsInQueue];
     1374    [self fullUpdateUI];
    13751375}
    13761376
     
    16981698}
    16991699
     1700#warning can this be removed or refined?
     1701- (void) fullUpdateUI
     1702{
     1703    [self updateUI];
     1704    [self applyFilter];
     1705    [[fWindow toolbar] validateVisibleItems];
     1706    [self updateTorrentHistory];
     1707}
     1708
    17001709- (void) setBottomCountText: (BOOL) filtering
    17011710{
     
    17211730}
    17221731
    1723 #warning rename? remove?
    1724 - (void) updateTorrentsInQueue
    1725 {
    1726     [self updateUI];
    1727     [self applyFilter];
    1728     [[fWindow toolbar] validateVisibleItems];
    1729     [self updateTorrentHistory];
    1730 }
    1731 
    17321732- (void) torrentFinishedDownloading: (NSNotification *) notification
    17331733{
     
    17651765    }
    17661766   
    1767     [self updateTorrentsInQueue];
     1767    [self fullUpdateUI];
    17681768}
    17691769
     
    17711771- (void) torrentRestartedDownloading: (NSNotification *) notification
    17721772{
    1773     [self updateTorrentsInQueue];
     1773    [self fullUpdateUI];
    17741774}
    17751775
     
    17781778    Torrent * torrent = [notification object];
    17791779   
    1780     [self updateTorrentsInQueue];
     1780    [self fullUpdateUI];
    17811781   
    17821782    if ([[fTableView selectedTorrents] containsObject: torrent])
     
    41944194    [torrent release];
    41954195   
    4196     [self updateTorrentsInQueue];
     4196    [self fullUpdateUI];
    41974197}
    41984198
Note: See TracChangeset for help on using the changeset viewer.