Skip to content

Commit 9c2e48b

Browse files
committed
Code Quality: Implement IOmnibarTextMemberPathProvider in SuggestionModel
1 parent 68d16a2 commit 9c2e48b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Files.App/Data/Models/SuggestionModel.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// Copyright (c) Files Community
22
// Licensed under the MIT License.
33

4+
using Files.App.Controls;
45
using Microsoft.UI.Xaml.Media.Imaging;
56

67
namespace Files.App.Data.Models
78
{
8-
public sealed partial class SuggestionModel : ObservableObject
9+
public sealed partial class SuggestionModel : ObservableObject, IOmnibarTextMemberPathProvider
910
{
1011
public bool IsRecentSearch { get; set; } = false;
1112

@@ -76,5 +77,10 @@ public SuggestionModel(string itemName, bool isRecentSearch)
7677
IsRecentSearch = isRecentSearch;
7778
Name = itemName;
7879
}
80+
81+
public string GetTextMemberPath(string textMemberPath)
82+
{
83+
return Name;
84+
}
7985
}
8086
}

0 commit comments

Comments
 (0)