Skip to content

Commit

Permalink
DependencyType match (#14314)
Browse files Browse the repository at this point in the history
  • Loading branch information
QilongTang committed Aug 25, 2023
1 parent cb784b9 commit 3000eda
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -1379,7 +1379,6 @@ private void RemoveItem(object parameter)

RefreshPackageContents();
return;

}

private bool CanShowAddFileDialogAndAdd()
Expand Down

0 comments on commit 3000eda

Please sign in to comment.