1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-15 16:29:34 +00:00

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

This commit is contained in:
Mitchell Livingston 2007-11-18 02:33:17 +00:00
parent 355f96e660
commit db4954cc68
6 changed files with 2 additions and 38 deletions

View file

@ -419,28 +419,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
//auto importing
[self checkAutoImportDirectory];
//debug warning
if ([fDefaults boolForKey: @"WarningDebug"] && [fDefaults integerForKey: @"MessageLevel"] == TR_MSG_DBG)
{
NSAlert * alert = [[NSAlert alloc] init];
[alert setMessageText: NSLocalizedString(@"The Message Log is set to \"Debug\"", "Debug log alert -> message")];
[alert setInformativeText: NSLocalizedString(@"Continuous use at this level might increase memory usage."
" This setting can be changed in the Message Log window (accessible from the Window menu).",
"Debug log alert -> informative message")];
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Debug log alert -> button")];
BOOL onLeopard = [NSApp isOnLeopardOrBetter];
if (onLeopard)
[alert setShowsSuppressionButton: YES];
else
[alert addButtonWithTitle: NSLocalizedString(@"Don't Alert Again", "Debug log alert -> button")];
NSInteger result = [alert runModal];
if ((onLeopard ? [[alert suppressionButton] state] == NSOnState : result == NSAlertSecondButtonReturn))
[fDefaults setBool: NO forKey: @"WarningDebug"];
[alert release];
}
}
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows

View file

@ -124,8 +124,6 @@
<integer>20</integer>
<key>UseIncompleteDownloadFolder</key>
<false/>
<key>WarningDebug</key>
<true/>
<key>WarningDuplicate</key>
<true/>
<key>WarningRemainingSpace</key>

View file

@ -10,10 +10,10 @@
<integer>5</integer>
<key>IBOpenObjects</key>
<array>
<integer>5</integer>
<integer>6</integer>
</array>
<key>IBSystem Version</key>
<string>9A581</string>
<string>9B18</string>
<key>targetFramework</key>
<string>IBCocoaFramework</string>
</dict>

View file

@ -37,9 +37,6 @@
NSTimer * fTimer;
NSImage * fErrorImage, * fInfoImage, * fDebugImage;
IBOutlet NSTextField * fDebugWarningField;
IBOutlet NSImageView * fDebugWarningIcon;
}
- (void) updateLog: (NSTimer *) timer;

View file

@ -36,7 +36,6 @@
- (void) resizeColumn;
- (NSString *) stringForMessage: (NSDictionary *) message;
- (void) setDebugWarningHidden: (BOOL) hide;
@end
@ -106,8 +105,6 @@
case TR_MSG_DBG:
[fLevelButton selectItemAtIndex: LEVEL_DEBUG];
}
[self setDebugWarningHidden: level != TR_MSG_DBG];
}
- (void) updateLog: (NSTimer *) timer
@ -335,10 +332,4 @@
return [NSString stringWithFormat: @"%@ [%@] %@", [message objectForKey: @"Date"], level, [message objectForKey: @"Message"]];
}
- (void) setDebugWarningHidden: (BOOL) hide
{
[fDebugWarningField setHidden: hide];
[fDebugWarningIcon setHidden: hide];
}
@end