Skip to content

Commit

Permalink
Fix: Disable copy path when no items are selected (#13755)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Nov 8, 2023
1 parent f4ab096 commit 5bc866e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Files.App/Actions/FileSystem/CopyPathAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public RichGlyph Glyph
public HotKey HotKey
=> new(Keys.C, KeyModifiers.CtrlShift);

public bool IsExecutable
=> context.HasSelection;

public CopyPathAction()
{
context = Ioc.Default.GetRequiredService<IContentPageContext>();
Expand Down

0 comments on commit 5bc866e

Please sign in to comment.