Fix special folder icons

This commit is contained in:
2022-05-27 22:33:22 +02:00
parent 03c8e3a36b
commit 6e7742a08a
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public class MaterialIconProvider : IIconProvider
{
item = item is ISymlinkElement symlinkElement ? symlinkElement.RealItem : item;
var icon = item is IContainer ? "folder.svg" : "file.svg";
var localPath = item.NativePath?.Path;
var localPath = item.NativePath?.Path.TrimEnd(Path.DirectorySeparatorChar);
if (!EnableAdvancedIcons) return GetAssetPath(icon);

View File

@@ -9,7 +9,7 @@ public class SpecialPathWithIcon
public SpecialPathWithIcon(string path, ImagePath iconPath)
{
Path = path;
Path = path.TrimEnd(System.IO.Path.DirectorySeparatorChar);
IconPath = iconPath;
}
}