Skip to content

Commit caa0b03

Browse files
committed
refactor: refactor SearchWebCommand initialization in FallbackSearchWebItem
1 parent 71f09b8 commit caa0b03

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CmdPalWebSearchShortcut/WebSearchShortcut/Pages/FallbackSearchWebItem.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ public FallbackSearchWebItem(WebSearchShortcutDataEntry shortcut)
1616
id: $"{shortcut.Id}.fallback",
1717
displayTitle: shortcut.Name,
1818
command: new SearchWebCommand(shortcut, string.Empty) {
19-
Id = $"{shortcut.Id}.fallback"
19+
Id = $"{shortcut.Id}.fallback",
20+
Name = string.Empty,
21+
Icon = Icons.Search
2022
}
2123
)
2224
{
2325
_shortcut = shortcut;
2426

2527
_searchWebCommand = (SearchWebCommand) Command!;
26-
_searchWebCommand.Name = string.Empty;
27-
_searchWebCommand.Icon = Icons.Search;
2828

2929
Title = string.Empty;
3030
Subtitle = string.Empty;

0 commit comments

Comments
 (0)