Skip to content

Commit 37897b0

Browse files
authored
Fix show open as admin on CMD files (#9268)
1 parent 9ed536a commit 37897b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.Uwp/Helpers/ContextFlyoutItemHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,15 +729,15 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(BaseLayo
729729
Glyph = "\uE7EF",
730730
Command = commandsViewModel.RunAsAdminCommand,
731731
ShowInSearchPage = true,
732-
ShowItem = new string[]{".bat", ".exe", "cmd" }.Contains(selectedItems.FirstOrDefault().FileExtension, StringComparer.OrdinalIgnoreCase)
732+
ShowItem = new string[]{".bat", ".exe", ".cmd" }.Contains(selectedItems.FirstOrDefault().FileExtension, StringComparer.OrdinalIgnoreCase)
733733
},
734734
new ContextMenuFlyoutItemViewModel()
735735
{
736736
Text = "BaseLayoutContextFlyoutRunAsAnotherUser/Text".GetLocalized(),
737737
Glyph = "\uE7EE",
738738
Command = commandsViewModel.RunAsAnotherUserCommand,
739739
ShowInSearchPage = true,
740-
ShowItem = new string[]{".bat", ".exe", "cmd" }.Contains(selectedItems.FirstOrDefault().FileExtension, StringComparer.OrdinalIgnoreCase)
740+
ShowItem = new string[]{".bat", ".exe", ".cmd" }.Contains(selectedItems.FirstOrDefault().FileExtension, StringComparer.OrdinalIgnoreCase)
741741
},
742742
new ContextMenuFlyoutItemViewModel()
743743
{

0 commit comments

Comments
 (0)