Never update OakFileIconImage states that are not marked dirty

This commit is contained in:
Allan Odgaard
2015-07-29 23:24:28 +02:00
parent 9cb059fa7b
commit ecf8cbc0bf

View File

@@ -225,9 +225,9 @@ enum {
struct stat buf;
if(lstat(path.c_str(), &buf) == 0)
{
_exists = YES;
_directory = S_ISDIR(buf.st_mode);
_alias = S_ISLNK(buf.st_mode);
_exists = !(_needsSetupMask & kNeedExists) ? _exists : YES;
_directory = !(_needsSetupMask & kNeedDirectory) ? _directory : S_ISDIR(buf.st_mode);
_alias = !(_needsSetupMask & kNeedAlias) ? _alias : S_ISLNK(buf.st_mode);
}
_needsSetupMask &= ~(kNeedExists|kNeedDirectory|kNeedAlias);
}