From fb9a0c69c5a2954412688b9aedb8bbf092db1be6 Mon Sep 17 00:00:00 2001 From: Yair <39923744+yaira2@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:33:10 -0400 Subject: [PATCH] Fix: Fixed issue where add item was disabled in column layout (#12520) --- src/Files.App/Actions/FileSystem/AddItemAction.cs | 2 +- src/Files.App/Actions/FileSystem/CreateFolderAction.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Files.App/Actions/FileSystem/AddItemAction.cs b/src/Files.App/Actions/FileSystem/AddItemAction.cs index 5eae56a4cd1a..e09ac664971c 100644 --- a/src/Files.App/Actions/FileSystem/AddItemAction.cs +++ b/src/Files.App/Actions/FileSystem/AddItemAction.cs @@ -24,7 +24,7 @@ internal class AddItemAction : ObservableObject, IAction public RichGlyph Glyph { get; } = new(opacityStyle: "ColorIconNew"); - public bool IsExecutable => context.CanCreateItem && !context.HasSelection; + public bool IsExecutable => context.CanCreateItem; public AddItemAction() { diff --git a/src/Files.App/Actions/FileSystem/CreateFolderAction.cs b/src/Files.App/Actions/FileSystem/CreateFolderAction.cs index ce84cd07832a..a5afaa5941c4 100644 --- a/src/Files.App/Actions/FileSystem/CreateFolderAction.cs +++ b/src/Files.App/Actions/FileSystem/CreateFolderAction.cs @@ -22,7 +22,7 @@ internal class CreateFolderAction : BaseUIAction, IAction public RichGlyph Glyph { get; } = new RichGlyph(baseGlyph: "\uE8B7"); - public override bool IsExecutable => context.CanCreateItem && !context.HasSelection && UIHelpers.CanShowDialog; + public override bool IsExecutable => context.CanCreateItem && UIHelpers.CanShowDialog; public CreateFolderAction() {