Skip to content

Commit b5abe61

Browse files
authored
Fixes shortcuts not appearing in recycle bin (#9156)
1 parent 1258999 commit b5abe61

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Files.Uwp/Filesystem/StorageEnumerators/UniversalStorageEnumerator.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,8 @@ CancellationToken cancellationToken
231231
return null;
232232
}
233233

234-
if (file.Name.EndsWith(".lnk", StringComparison.Ordinal) || file.Name.EndsWith(".url", StringComparison.Ordinal))
235-
{
236-
// This shouldn't happen, StorageFile api does not support shortcuts
237-
Debug.WriteLine("Something strange: StorageFile api returned a shortcut");
238-
}
239234
// TODO: is this needed to be handled here?
240-
else if (App.LibraryManager.TryGetLibrary(file.Path, out LibraryLocationItem library))
235+
if (App.LibraryManager.TryGetLibrary(file.Path, out LibraryLocationItem library))
241236
{
242237
return new LibraryItem(library)
243238
{

0 commit comments

Comments
 (0)