Skip to content

Commit 745ce31

Browse files
hishitetsuyaira2
authored andcommitted
Fix: Fixed crash that would occur when clicking an item on the Tags widget (#14745)
1 parent 4785008 commit 745ce31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Files.App/Data/Items/WidgetFileTagCardItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ public WidgetFileTagCardItem(IStorable associatedStorable, Func<string, Task> op
5656
_Path = associatedStorable.TryGetPath();
5757
Item = this;
5858

59-
ClickCommand = new AsyncRelayCommand<CancellationToken>(ClickAsync);
59+
ClickCommand = new AsyncRelayCommand(ClickAsync);
6060
}
6161

62-
private Task ClickAsync(CancellationToken cancellationToken)
62+
private Task ClickAsync()
6363
{
6464
return _openAction(_associatedStorable.Id);
6565
}

src/Files.App/UserControls/Widgets/FileTagsWidget.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private void OpenInNewPane(WidgetCardItem? item)
9696
});
9797
}
9898

99-
private async void FileTagItem_ItemClick(object sender, ItemClickEventArgs e)
99+
private void FileTagItem_ItemClick(object sender, ItemClickEventArgs e)
100100
{
101101
if (e.ClickedItem is WidgetFileTagCardItem itemViewModel)
102102
itemViewModel.ClickCommand.Execute(null);

0 commit comments

Comments
 (0)