Skip to content

Commit 1037111

Browse files
committed
refactor: clarify FallbackSearchWebItem constructor with named arguments
1 parent 2ce4e2d commit 1037111

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

CmdPalWebSearchShortcut/WebSearchShortcut/Pages/FallbackSearchWebItem.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ internal sealed partial class FallbackSearchWebItem : FallbackCommandItem
1212
private readonly WebSearchShortcutDataEntry _shortcut;
1313

1414
public FallbackSearchWebItem(WebSearchShortcutDataEntry shortcut)
15-
: base(new SearchWebCommand(shortcut, string.Empty) { Id = $"{shortcut.Id}.fallback" }, shortcut.Name, $"{shortcut.Id}.fallback")
15+
: base(
16+
id: $"{shortcut.Id}.fallback",
17+
displayTitle: shortcut.Name,
18+
command: new SearchWebCommand(shortcut, string.Empty) {
19+
Id = $"{shortcut.Id}.fallback"
20+
}
21+
)
1622
{
1723
_shortcut = shortcut;
1824

0 commit comments

Comments
 (0)