Skip to content

Commit fb9a0c6

Browse files
authored
Fix: Fixed issue where add item was disabled in column layout (#12520)
1 parent 6daee6c commit fb9a0c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Files.App/Actions/FileSystem/AddItemAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class AddItemAction : ObservableObject, IAction
2424

2525
public RichGlyph Glyph { get; } = new(opacityStyle: "ColorIconNew");
2626

27-
public bool IsExecutable => context.CanCreateItem && !context.HasSelection;
27+
public bool IsExecutable => context.CanCreateItem;
2828

2929
public AddItemAction()
3030
{

src/Files.App/Actions/FileSystem/CreateFolderAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal class CreateFolderAction : BaseUIAction, IAction
2222

2323
public RichGlyph Glyph { get; } = new RichGlyph(baseGlyph: "\uE8B7");
2424

25-
public override bool IsExecutable => context.CanCreateItem && !context.HasSelection && UIHelpers.CanShowDialog;
25+
public override bool IsExecutable => context.CanCreateItem && UIHelpers.CanShowDialog;
2626

2727
public CreateFolderAction()
2828
{

0 commit comments

Comments
 (0)