Changeset 1589


Ignore:
Timestamp:
Mar 24, 2007, 5:41:57 PM (15 years ago)
Author:
livings124
Message:

remaining disk space warning now has an option to never ask again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r1588 r1589  
    668668        [alert addButtonWithTitle: NSLocalizedString(@"OK", "Torrent file disk space alert -> button")];
    669669        [alert addButtonWithTitle: NSLocalizedString(@"Download Anyway", "Torrent file disk space alert -> button")];
    670        
    671         BOOL ret = [alert runModal] != NSAlertFirstButtonReturn;
    672        
     670        [alert addButtonWithTitle: NSLocalizedString(@"Always Download", "Torrent file disk space alert -> button")];
     671       
     672        int result = [alert runModal];
    673673        [alert release];
    674674       
    675         return ret;
     675        if (result == NSAlertThirdButtonReturn)
     676            [fDefaults setBool: NO forKey: @"RemainingSpaceWarning"];
     677       
     678        return result != NSAlertFirstButtonReturn;
    676679    }
    677680    return YES;
Note: See TracChangeset for help on using the changeset viewer.