We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce11888 commit 98997ceCopy full SHA for 98997ce
Files.Launcher/Program.cs
@@ -609,8 +609,18 @@ private static async Task ParseRecycleBinActionAsync(AppServiceRequestReceivedEv
609
{
610
try
611
612
- var shellFileItem = GetRecycleBinItem(folderItem);
613
- folderContentsList.Add(shellFileItem);
+ // ShellLink Properties refer to destination and not shortcut
+ if (folderItem is ShellLink shellLink)
614
+ {
615
+ using var tempItem = new ShellItem(shellLink.PIDL);
616
+ var shellFileItem = GetRecycleBinItem(tempItem);
617
+ folderContentsList.Add(shellFileItem);
618
+ }
619
+ else
620
621
+ var shellFileItem = GetRecycleBinItem(folderItem);
622
623
624
}
625
catch (FileNotFoundException)
626
0 commit comments