If there was no change in the directory don't even attempt to check files.
This commit is contained in:
parent
a2962c4a71
commit
b252a98c13
|
@ -1148,11 +1148,12 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
|
NSString * path = [[fDefaults stringForKey: @"AutoImportDirectory"] stringByExpandingTildeInPath];
|
||||||
|
|
||||||
//if folder cannot be found simply give up
|
//if folder cannot be found or the contents hasn't changed simply give up
|
||||||
NSArray * allFileNames;
|
NSArray * allFileNames;NSLog(@"first");
|
||||||
if (!(allFileNames = [[NSFileManager defaultManager] directoryContentsAtPath: path]))
|
if (!(allFileNames = [[NSFileManager defaultManager] directoryContentsAtPath: path])
|
||||||
|
|| [allFileNames isEqualToArray: fAutoImportedNames])
|
||||||
return;
|
return;
|
||||||
|
NSLog(@"here!");
|
||||||
//try to add files that haven't already been added
|
//try to add files that haven't already been added
|
||||||
NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames];
|
NSMutableArray * newFileNames = [NSMutableArray arrayWithArray: allFileNames];
|
||||||
[newFileNames removeObjectsInArray: fAutoImportedNames];
|
[newFileNames removeObjectsInArray: fAutoImportedNames];
|
||||||
|
@ -1721,7 +1722,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSRect) windowWillUseStandardFrame: (NSWindow *) w defaultFrame: (NSRect) defaultFrame
|
- (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame
|
||||||
{
|
{
|
||||||
NSRect windowRect = [fWindow frame];
|
NSRect windowRect = [fWindow frame];
|
||||||
float newHeight = windowRect.size.height - [fScrollView frame].size.height
|
float newHeight = windowRect.size.height - [fScrollView frame].size.height
|
||||||
|
|
Loading…
Reference in New Issue