If Transmission is opened by double-clicking a torrent file, open that torrent before setting up auto-import
This commit is contained in:
parent
cac037629d
commit
481dc9f6b8
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -1313,6 +1313,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
|
||||
- (void) setFileCheckState: (int) state forIndexes: (NSIndexSet *) indexSet
|
||||
{
|
||||
#warning multiples
|
||||
int index;
|
||||
for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
|
||||
tr_torrentSetFileDL(fHandle, index, state != NSOffState);
|
||||
|
@ -1324,6 +1325,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
|
||||
- (void) setFilePriority: (int) priority forIndexes: (NSIndexSet *) indexSet
|
||||
{
|
||||
#warning multiples
|
||||
int index;
|
||||
for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
|
||||
tr_torrentSetFilePriority(fHandle, index, priority);
|
||||
|
|
Loading…
Reference in New Issue