mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
If Transmission is opened by double-clicking a torrent file, open that torrent before setting up auto-import
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user