Fix special folder icons
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class SpecialPathWithIcon
|
||||
|
||||
public SpecialPathWithIcon(string path, ImagePath iconPath)
|
||||
{
|
||||
Path = path;
|
||||
Path = path.TrimEnd(System.IO.Path.DirectorySeparatorChar);
|
||||
IconPath = iconPath;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user