Skip to content

Commit

Permalink
Fix: Fixed issue where delete confirmation dialog sometimes did not a…
Browse files Browse the repository at this point in the history
…ppear immediately (#12414)
  • Loading branch information
hishitetsu authored May 21, 2023
1 parent 0838789 commit 656977e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Helpers/FileOperationsHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
if (!SafetyExtensions.IgnoreExceptions(() =>
{
using var shi = new ShellItem(fileToDeletePath[i]);
var file = SafetyExtensions.IgnoreExceptions(() => GetFirstFile(shi)) ?? shi;
using var file = SafetyExtensions.IgnoreExceptions(() => GetFirstFile(shi)) ?? shi;
if (file.Properties.GetProperty<uint>(PKEY_FilePlaceholderStatus) == PS_CLOUDFILE_PLACEHOLDER)
{
// Online only files cannot be tried for deletion, so they are treated as to be permanently deleted.
Expand Down

0 comments on commit 656977e

Please sign in to comment.