If Transmission is opened by double-clicking a torrent file, open that torrent before setting up auto-import

This commit is contained in:
Mitchell Livingston
2007-07-11 01:40:49 +00:00
parent cac037629d
commit 481dc9f6b8
3 changed files with 6 additions and 4 deletions

View File

@@ -447,9 +447,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[self autoSpeedLimitChange: nil];
fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self
selector: @selector(autoSpeedLimit) userInfo: nil repeats: YES];
//auto importing
[self checkAutoImportDirectory];
}
- (void) applicationDidFinishLaunching: (NSNotification *) notification
@@ -461,6 +458,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
andSelector: @selector(handleOpenContentsEvent:replyEvent:)
forEventClass: kCoreEventClass andEventID: kAEOpenContents];
//auto importing
[self checkAutoImportDirectory];
//debug warning
if ([fDefaults boolForKey: @"WarningDebug"] && [fDefaults integerForKey: @"MessageLevel"] == TR_MSG_DBG)
{