Ignore:
Timestamp:
Jul 11, 2008, 9:48:43 PM (14 years ago)
Author:
livings124
Message:

#1042: show "in progress" in the inspector when announcing/scraping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r6262 r6325  
    13961396   
    13971397    int announceNext = [torrent nextAnnounceTime];
    1398     [fAnnounceNextField setStringValue: announceNext > 0 ? [NSString timeString: announceNext showSeconds: YES] : @""];
     1398    NSString * announceNextString;
     1399    switch (announceNext)
     1400    {
     1401        case STAT_TIME_NOW:
     1402            announceNextString = [NSLocalizedString(@"In progress", "Inspector -> tracker tab") stringByAppendingEllipsis];
     1403            break;
     1404        case STAT_TIME_NONE:
     1405            announceNextString = @"";
     1406            break;
     1407        default:
     1408            announceNextString = [NSString timeString: announceNext showSeconds: YES];
     1409    }
     1410    [fAnnounceNextField setStringValue: announceNextString];
    13991411   
    14001412    //scrape fields
     
    14191431   
    14201432    int scrapeNext = [torrent nextScrapeTime];
    1421     [fScrapeNextField setStringValue: scrapeNext > 0 ? [NSString timeString: scrapeNext showSeconds: YES] : @""];
     1433    NSString * scrapeNextString;
     1434    switch (scrapeNext)
     1435    {
     1436        case STAT_TIME_NOW:
     1437            scrapeNextString = [NSLocalizedString(@"In progress", "Inspector -> tracker tab") stringByAppendingEllipsis];
     1438            break;
     1439        case STAT_TIME_NONE:
     1440            scrapeNextString = @"";
     1441            break;
     1442        default:
     1443            scrapeNextString = [NSString timeString: scrapeNext showSeconds: YES];
     1444    }
     1445    [fScrapeNextField setStringValue: scrapeNextString];
    14221446}
    14231447
Note: See TracChangeset for help on using the changeset viewer.