Skip to content

Commit 11f8567

Browse files
authored
Fixed an issue where symlinks weren't displaying properly (#8145)
1 parent 7673365 commit 11f8567

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Files/Filesystem/ListedItem.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,19 @@ public ShortcutItem() : base()
517517
// For shortcut elements (.lnk and .url)
518518
public string TargetPath { get; set; }
519519

520-
public override string ItemName => Path.GetFileNameWithoutExtension(ItemNameRaw); // Always hide extension
520+
public override string ItemName
521+
{
522+
get
523+
{
524+
if (IsSymLink)
525+
{
526+
return base.ItemName;
527+
}
528+
529+
// Always hide extension for shortcuts
530+
return Path.GetFileNameWithoutExtension(ItemNameRaw);
531+
}
532+
}
521533

522534
public string Arguments { get; set; }
523535
public string WorkingDirectory { get; set; }

0 commit comments

Comments
 (0)