Skip to content

Commit 2ed9ea5

Browse files
committed
chore: modernize fallback command Id assignment
1 parent 481af45 commit 2ed9ea5

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

CmdPalWebSearchShortcut/WebSearchShortcut/Commands/SearchWebCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ namespace WebSearchShortcut.Commands;
55

66
internal sealed partial class SearchWebCommand : InvokableCommand
77
{
8-
public new string Id
9-
{
10-
get => base.Id;
11-
set => base.Id = value;
12-
}
13-
148
public string Query { get; internal set; } = string.Empty;
159

1610
private readonly WebSearchShortcutDataEntry _shortcut;

CmdPalWebSearchShortcut/WebSearchShortcut/Pages/FallbackSearchWebItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ 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)
15+
: base(new SearchWebCommand(shortcut, string.Empty), shortcut.Name, $"{shortcut.Id}.fallback")
1616
{
1717
_shortcut = shortcut;
1818

0 commit comments

Comments
 (0)