Skip to content

Commit 5bc866e

Browse files
authored
Fix: Disable copy path when no items are selected (#13755)
1 parent f4ab096 commit 5bc866e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public RichGlyph Glyph
2121
public HotKey HotKey
2222
=> new(Keys.C, KeyModifiers.CtrlShift);
2323

24+
public bool IsExecutable
25+
=> context.HasSelection;
26+
2427
public CopyPathAction()
2528
{
2629
context = Ioc.Default.GetRequiredService<IContentPageContext>();

0 commit comments

Comments
 (0)