small auto-import change
This commit is contained in:
parent
3bac536bc2
commit
fcbd87177e
|
@ -364,6 +364,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self
|
fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self
|
||||||
selector: @selector(autoSpeedLimit:) userInfo: nil repeats: YES];
|
selector: @selector(autoSpeedLimit:) userInfo: nil repeats: YES];
|
||||||
|
|
||||||
|
//auto importing
|
||||||
|
fAutoImportedNames = [[NSMutableArray alloc] init];
|
||||||
[self checkAutoImportDirectory];
|
[self checkAutoImportDirectory];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1582,7 +1584,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
//only import those that have not been imported yet
|
//only import those that have not been imported yet
|
||||||
NSMutableArray * newNames = [importedNames mutableCopy];
|
NSMutableArray * newNames = [importedNames mutableCopy];
|
||||||
[newNames removeObjectsInArray: fAutoImportedNames];
|
[newNames removeObjectsInArray: fAutoImportedNames];
|
||||||
[fAutoImportedNames addObjectsFromArray: newNames];
|
[fAutoImportedNames setArray: importedNames];
|
||||||
|
|
||||||
NSEnumerator * enumerator = [newNames objectEnumerator];
|
NSEnumerator * enumerator = [newNames objectEnumerator];
|
||||||
NSString * file;
|
NSString * file;
|
||||||
|
|
Loading…
Reference in New Issue