Changeset 1800


Ignore:
Timestamp:
Apr 25, 2007, 3:00:43 AM (15 years ago)
Author:
livings124
Message:

warning when starting up with message log set to debug

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1765 r1800  
    419419    fAutoImportedNames = [[NSMutableArray alloc] init];
    420420    [self checkAutoImportDirectory];
     421   
     422    //debug warning
     423    if ([fDefaults boolForKey: @"WarningDebug"] && [fDefaults integerForKey: @"MessageLevel"] == TR_MSG_DBG)
     424    {
     425        NSAlert * alert = [[NSAlert alloc] init];
     426        [alert setMessageText: NSLocalizedString(@"The Message Log is set to \"Debug\"", "Debug log alert -> message")];
     427        [alert setInformativeText: NSLocalizedString(@"Continuous use at this level might increase memory usage."
     428                                    " This setting can be changed in the Message Log window (accessible from the Window menu).",
     429                                    "Debug log alert -> informative message")];
     430        [alert addButtonWithTitle: NSLocalizedString(@"OK", "Debug log alert -> button")];
     431        [alert addButtonWithTitle: NSLocalizedString(@"Don't Remind Again", "Debug log alert -> button")];
     432       
     433        if ([alert runModal] == NSAlertSecondButtonReturn)
     434            [fDefaults setBool: NO forKey: @"WarningDebug"];
     435        [alert release];
     436    }
    421437}
    422438
  • trunk/macosx/Defaults.plist

    r1649 r1800  
    4545        <key>IncompleteDownloadFolder</key>
    4646        <string>~/Desktop</string>
     47        <key>InfoVisible</key>
     48        <false/>
    4749        <key>InspectorSelected</key>
    4850        <string>Info</string>
    49         <key>InfoVisible</key>
    50         <false/>
    5151        <key>MessageLevel</key>
    5252        <integer>1</integer>
     
    7575        <key>RatioLimit</key>
    7676        <integer>2</integer>
    77         <key>RemainingSpaceWarning</key>
    78         <true/>
    7977        <key>SUScheduledCheckInterval</key>
    8078        <integer>86400</integer>
     
    111109        <key>UseIncompleteDownloadFolder</key>
    112110        <false/>
     111        <key>WarningDebug</key>
     112        <true/>
     113        <key>WarningRemainingSpace</key>
     114        <true/>
    113115</dict>
    114116</plist>
  • trunk/macosx/English.lproj/PrefsWindow.nib/info.nib

    r1799 r1800  
    1010                <string>294 444 563 268 0 0 1152 842 </string>
    1111                <key>28</key>
    12                 <string>139 407 563 307 0 0 1152 842 </string>
     12                <string>294 424 563 307 0 0 1152 842 </string>
    1313                <key>41</key>
    1414                <string>294 425 563 305 0 0 1152 842 </string>
     
    2222                <integer>253</integer>
    2323        </array>
     24        <key>IBOpenObjects</key>
     25        <array>
     26                <integer>28</integer>
     27        </array>
    2428        <key>IBSystem Version</key>
    2529        <string>8P135</string>
  • trunk/macosx/Torrent.m

    r1777 r1800  
    710710       
    711711        if (result == NSAlertThirdButtonReturn)
    712             [fDefaults setBool: NO forKey: @"RemainingSpaceWarning"];
     712            [fDefaults setBool: NO forKey: @"WarningRemainingSpace"];
    713713       
    714714        return result != NSAlertFirstButtonReturn;
Note: See TracChangeset for help on using the changeset viewer.