From 3000eda8311597466ce13dbcaf9b28028cfad370 Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" <173288704@qq.com> Date: Fri, 25 Aug 2023 23:06:19 +0800 Subject: [PATCH] DependencyType match (#14314) --- .../ViewModels/PackageManager/PublishPackageViewModel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs b/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs index 05579bb0bdb..86dbfd7214a 100644 --- a/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/PackageManager/PublishPackageViewModel.cs @@ -1359,7 +1359,7 @@ private void RemoveItem(object parameter) if (!(parameter is PackageItemRootViewModel packageItemRootViewModel)) return; string fileName = packageItemRootViewModel.FileInfo == null ? packageItemRootViewModel.Name : packageItemRootViewModel.FileInfo.FullName; - string fileType = packageItemRootViewModel.DependencyType.ToString(); + DependencyType fileType = packageItemRootViewModel.DependencyType; if (fileName.ToLower().EndsWith(".dll") || fileType.Equals(DependencyType.Assembly)) { @@ -1379,7 +1379,6 @@ private void RemoveItem(object parameter) RefreshPackageContents(); return; - } private bool CanShowAddFileDialogAndAdd()