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)
{

View File

@ -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);