mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
move debug warning code from awakeFromNib to applicationDidFinishLaunching: so that only one Help menu is created
This commit is contained in:
parent
61a611bd29
commit
9d570c03db
1 changed files with 10 additions and 10 deletions
|
@ -418,6 +418,16 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
//auto importing
|
||||
fAutoImportedNames = [[NSMutableArray alloc] init];
|
||||
[self checkAutoImportDirectory];
|
||||
}
|
||||
|
||||
- (void) applicationDidFinishLaunching: (NSNotification *) notification
|
||||
{
|
||||
[NSApp setServicesProvider: self];
|
||||
|
||||
//register for dock icon drags
|
||||
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self
|
||||
andSelector: @selector(handleOpenContentsEvent:replyEvent:)
|
||||
forEventClass: kCoreEventClass andEventID: kAEOpenContents];
|
||||
|
||||
//debug warning
|
||||
if ([fDefaults boolForKey: @"WarningDebug"] && [fDefaults integerForKey: @"MessageLevel"] == TR_MSG_DBG)
|
||||
|
@ -436,16 +446,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
}
|
||||
}
|
||||
|
||||
- (void) applicationDidFinishLaunching: (NSNotification *) notification
|
||||
{
|
||||
[NSApp setServicesProvider: self];
|
||||
|
||||
//register for dock icon drags
|
||||
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self
|
||||
andSelector: @selector(handleOpenContentsEvent:replyEvent:)
|
||||
forEventClass: kCoreEventClass andEventID: kAEOpenContents];
|
||||
}
|
||||
|
||||
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
|
||||
{
|
||||
if (![fWindow isVisible] && ![[fPrefsController window] isVisible])
|
||||
|
|
Loading…
Reference in a new issue