Skip to content

Commit 0710fb2

Browse files
hishitetsuwharvex
authored andcommitted
Code Quality: Update dependencies (files-community#15810)
1 parent 280e2ba commit 0710fb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Files.App/Files.App.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
<PackageReference Include="TagLibSharp" Version="2.3.0" />
8787
<PackageReference Include="Tulpep.ActiveDirectoryObjectPicker" Version="3.0.11" />
8888
<PackageReference Include="WinUIEx" Version="2.3.4" />
89-
<PackageReference Include="Vanara.Windows.Extensions" Version="4.0.1" />
90-
<PackageReference Include="Vanara.Windows.Shell" Version="4.0.1" />
89+
<PackageReference Include="Vanara.Windows.Extensions" Version="4.0.2" />
90+
<PackageReference Include="Vanara.Windows.Shell" Version="4.0.2" />
9191
<PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
9292
<PackageReference Include="Microsoft.Management.Infrastructure.Runtime.Win" Version="3.0.0" />
9393
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106" PrivateAssets="all" />

src/Files.App/Utils/Storage/Operations/FileOperationsHelpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public static Task SetClipboard(string[] filesToCopy, DataPackageOperation opera
127127
{
128128
using var shi = new ShellItem(fileToDeletePath[i]);
129129
using var file = SafetyExtensions.IgnoreExceptions(() => GetFirstFile(shi)) ?? shi;
130-
if ((uint?)file.Properties.GetValueOrDefault(PKEY_FilePlaceholderStatus) == PS_CLOUDFILE_PLACEHOLDER)
130+
var status = file.Properties.TryGetValue(PKEY_FilePlaceholderStatus, out var value) ? (uint?)value : null;
131+
if (status == PS_CLOUDFILE_PLACEHOLDER)
131132
{
132133
// Online only files cannot be tried for deletion, so they are treated as to be permanently deleted.
133134
shellOperationResult.Items.Add(new ShellOperationItemResult()

0 commit comments

Comments
 (0)