Changeset 3868


Ignore:
Timestamp:
Nov 18, 2007, 2:33:17 AM (15 years ago)
Author:
livings124
Message:

get rid of the Debug warning (it's not as relevant as it was back in the olden days)

Location:
trunk/macosx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3852 r3868  
    420420    //auto importing
    421421    [self checkAutoImportDirectory];
    422    
    423     //debug warning
    424     if ([fDefaults boolForKey: @"WarningDebug"] && [fDefaults integerForKey: @"MessageLevel"] == TR_MSG_DBG)
    425     {
    426         NSAlert * alert = [[NSAlert alloc] init];
    427         [alert setMessageText: NSLocalizedString(@"The Message Log is set to \"Debug\"", "Debug log alert -> message")];
    428         [alert setInformativeText: NSLocalizedString(@"Continuous use at this level might increase memory usage."
    429                                     " This setting can be changed in the Message Log window (accessible from the Window menu).",
    430                                     "Debug log alert -> informative message")];
    431         [alert addButtonWithTitle: NSLocalizedString(@"OK", "Debug log alert -> button")];
    432        
    433         BOOL onLeopard = [NSApp isOnLeopardOrBetter];
    434         if (onLeopard)
    435             [alert setShowsSuppressionButton: YES];
    436         else
    437             [alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Debug log alert -> button")];
    438        
    439         NSInteger result = [alert runModal];
    440         if ((onLeopard ? [[alert suppressionButton] state] == NSOnState : result == NSAlertSecondButtonReturn))
    441             [fDefaults setBool: NO forKey: @"WarningDebug"];
    442         [alert release];
    443     }
    444422}
    445423
  • trunk/macosx/Defaults.plist

    r3761 r3868  
    125125        <key>UseIncompleteDownloadFolder</key>
    126126        <false/>
    127         <key>WarningDebug</key>
    128         <true/>
    129127        <key>WarningDuplicate</key>
    130128        <true/>
  • trunk/macosx/English.lproj/MessageWindow.nib/info.nib

    r3608 r3868  
    1111        <key>IBOpenObjects</key>
    1212        <array>
    13                 <integer>5</integer>
     13                <integer>6</integer>
    1414        </array>
    1515        <key>IBSystem Version</key>
    16         <string>9A581</string>
     16        <string>9B18</string>
    1717        <key>targetFramework</key>
    1818        <string>IBCocoaFramework</string>
  • trunk/macosx/MessageWindowController.h

    r3608 r3868  
    3838   
    3939    NSImage * fErrorImage, * fInfoImage, * fDebugImage;
    40    
    41     IBOutlet NSTextField * fDebugWarningField;
    42     IBOutlet NSImageView * fDebugWarningIcon;
    4340}
    4441
  • trunk/macosx/MessageWindowController.m

    r3612 r3868  
    3737- (void) resizeColumn;
    3838- (NSString *) stringForMessage: (NSDictionary *) message;
    39 - (void) setDebugWarningHidden: (BOOL) hide;
    4039
    4140@end
     
    107106            [fLevelButton selectItemAtIndex: LEVEL_DEBUG];
    108107    }
    109    
    110     [self setDebugWarningHidden: level != TR_MSG_DBG];
    111108}
    112109
     
    336333}
    337334
    338 - (void) setDebugWarningHidden: (BOOL) hide
    339 {
    340     [fDebugWarningField setHidden: hide];
    341     [fDebugWarningIcon setHidden: hide];
    342 }
    343 
    344335@end
Note: See TracChangeset for help on using the changeset viewer.