Ignore:
Timestamp:
Dec 2, 2009, 12:27:07 AM (13 years ago)
Author:
livings124
Message:

cap the message log count in the Mac UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9617 r9648  
    943943    if (!(torrent = [[Torrent alloc] initWithMagnetAddress: address location: nil lib: fLib]))
    944944    {
    945         NSRunAlertPanel(NSLocalizedString(@"Adding magnetized transfer failed", "Magnet link failed -> title"),
    946             [NSString stringWithFormat: NSLocalizedString(@"There was an error when adding the magnet link \"%@\"."
    947             " The transfer will not occur.", "Magnet link failed -> message"), address],
    948             NSLocalizedString(@"OK", "Magnet link failed -> button"), nil, nil);
     945        [self invalidOpenMagnetAlert: address];
    949946        return;
    950947    }
     
    10751072}
    10761073
     1074- (void) invalidOpenMagnetAlert: (NSString *) address
     1075{
     1076    if (![fDefaults boolForKey: @"WarningInvalidOpen"])
     1077        return;
     1078   
     1079    NSAlert * alert = [[NSAlert alloc] init];
     1080    [alert setMessageText: NSLocalizedString(@"Adding magnetized transfer failed", "Magnet link failed -> title")];
     1081    [alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"There was an error when adding the magnet link \"%@\"."
     1082                                " The transfer will not occur.", "Magnet link failed -> message"), address]];
     1083    [alert setAlertStyle: NSWarningAlertStyle];
     1084    [alert addButtonWithTitle: NSLocalizedString(@"OK", "Magnet link failed -> button")];
     1085   
     1086    [alert runModal];
     1087    if ([[alert suppressionButton] state] == NSOnState)
     1088        [fDefaults setBool: NO forKey: @"WarningInvalidOpen"];
     1089    [alert release];
     1090}
     1091
    10771092- (void) duplicateOpenAlert: (NSString *) name
    10781093{
     
    10841099                            "Open duplicate alert -> title"), name]];
    10851100    [alert setInformativeText:
    1086             NSLocalizedString(@"The torrent file cannot be opened because it is a duplicate of an already added transfer.",
     1101            NSLocalizedString(@"The transfer cannot be added because it is a duplicate of an already existing transfer.",
    10871102                            "Open duplicate alert -> message")];
    10881103    [alert setAlertStyle: NSWarningAlertStyle];
Note: See TracChangeset for help on using the changeset viewer.