Ignore:
Timestamp:
Aug 18, 2009, 2:30:07 AM (13 years ago)
Author:
livings124
Message:

For the first time shown, don't show the "never show again" on the donation dialog. The reasoning for this is that new users will get that dialog without a chance to thoroughly use the app, so they can have a week before having the option to hide forever.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r8955 r8966  
    562562        [noDonateButton setKeyEquivalent: @"\e"]; //escape key
    563563       
    564         [alert setShowsSuppressionButton: YES];
    565         [[alert suppressionButton] setTitle: NSLocalizedString(@"Don't bug me about this ever again.", "Donation beg -> button")];
     564        const BOOL allowNeverAgain = lastDonateDate != nil; //hide the "don't show again" check the first time - give them a little time to try the app
     565        [alert setShowsSuppressionButton: allowNeverAgain];
     566        if (allowNeverAgain)
     567            [[alert suppressionButton] setTitle: NSLocalizedString(@"Don't bug me about this ever again.", "Donation beg -> button")];
    566568       
    567569        const NSInteger donateResult = [alert runModal];
     
    569571            [self linkDonate: self];
    570572       
    571         [fDefaults setBool: ([[alert suppressionButton] state] != NSOnState) forKey: @"WarningDonate"];
     573        if (allowNeverAgain)
     574            [fDefaults setBool: ([[alert suppressionButton] state] != NSOnState) forKey: @"WarningDonate"];
    572575       
    573576        [alert release];
Note: See TracChangeset for help on using the changeset viewer.