Add Git overlay, operation tools, and virtualized preview so large folders stay responsive.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -47,6 +47,11 @@ internal static class ShellIconCache
|
||||
return isDirectory ? "dir:generic" : "file:generic";
|
||||
}
|
||||
|
||||
if (path == LocationRoots.RecycleBin)
|
||||
{
|
||||
return "recycle";
|
||||
}
|
||||
|
||||
if (isDirectory)
|
||||
{
|
||||
return PathRules.IsDriveRoot(path) || (path.Length <= 3 && path.Contains(':', StringComparison.Ordinal))
|
||||
@@ -79,6 +84,10 @@ internal static class ShellIconCache
|
||||
psz = isDirectory ? "folder" : "file";
|
||||
flags |= ShgfiUseFileAttributes;
|
||||
}
|
||||
else if (path == LocationRoots.RecycleBin)
|
||||
{
|
||||
psz = @"::{645FF040-5081-101B-9F08-00AA002F954E}";
|
||||
}
|
||||
else if (isDirectory && PathRules.IsDriveRoot(path))
|
||||
{
|
||||
psz = PathRules.EnsureDirectoryTrailingSlashIfRoot(path);
|
||||
|
||||
Reference in New Issue
Block a user