Skip to content

Commit

Permalink
Fix: Fixed issue where add item was disabled in column layout (#12520)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Jun 2, 2023
1 parent 6daee6c commit fb9a0c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Files.App/Actions/FileSystem/AddItemAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/FileSystem/CreateFolderAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit fb9a0c6

Please sign in to comment.