Skip to content

Commit 48b351f

Browse files
committed
Update PasteItemAsShortcutAction.cs
1 parent 8a85d95 commit 48b351f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public PasteItemAsShortcutAction()
2727
App.AppModel.PropertyChanged += AppModel_PropertyChanged;
2828
}
2929

30-
public async Task ExecuteAsync(object? parameter = null)
30+
public Task ExecuteAsync(object? parameter = null)
3131
{
3232
if (context.ShellPage is null)
33-
return;
33+
return Task.CompletedTask;
3434

3535
string path = context.ShellPage.ShellViewModel.WorkingDirectory;
36-
await UIFilesystemHelpers.PasteItemAsShortcutAsync(path, context.ShellPage);
36+
return UIFilesystemHelpers.PasteItemAsShortcutAsync(path, context.ShellPage);
3737
}
3838

3939
public bool GetIsExecutable()

0 commit comments

Comments
 (0)