Skip to content

Commit 9578162

Browse files
committed
Simplify code
1 parent 887021b commit 9578162

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,10 @@ await DialogDisplayHelper.ShowDialogAsync(Strings.CommandNotExecutable.GetLocali
278278
string.Format(Strings.CommandNotExecutableContent.GetLocalizedResource(), command.Code));
279279
else
280280
await command.ExecuteAsync();
281-
282-
ViewModel.OmnibarCurrentSelectedMode = OmnibarPathMode;
283-
ViewModel.OmnibarCommandPaletteModeText = string.Empty;
284-
return;
285281
}
286282

287283
// Try invoking Windows app action
288-
if (ActionManager.Instance.ActionRuntime is not null && item.ActionInstance is ActionInstance actionInstance)
284+
else if (ActionManager.Instance.ActionRuntime is not null && item.ActionInstance is ActionInstance actionInstance)
289285
{
290286
// Workaround for https://github.com/microsoft/App-Actions-On-Windows-Samples/issues/7
291287
var action = ActionManager.Instance.ActionRuntime.ActionCatalog.GetAllActions()

0 commit comments

Comments
 (0)