Skip to content

Commit 42b2fba

Browse files
committed
Fixed rebase
1 parent d57ebac commit 42b2fba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Files.App/UserControls/NavigationToolbar.xaml.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,7 @@ private async void Omnibar_QuerySubmitted(Omnibar sender, OmnibarQuerySubmittedE
266266
if (args.Item is not NavigationBarSuggestionItem item)
267267
return;
268268

269-
string commandText = { Text: string itemText }
270-
? itemText
271-
: args.Text is string text
272-
? text
273-
: string.Empty;
274-
275-
// Try invoking built-in command
276-
if (!string.IsNullOrEmpty(commandText))
269+
if (item.Text is { } commandText)
277270
{
278271
var command = Commands[commandText];
279272
if (command == Commands.None)

0 commit comments

Comments
 (0)