Skip to content

Commit 37c5e40

Browse files
authored
Removed duplicate options to open terminal (#7783)
1 parent b1a714e commit 37c5e40

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Files.Launcher/MessageHandlers/ContextMenuHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private Func<string, bool> FilterMenuItems(bool showOpenMenu)
151151
"cut", "copy", "paste", "delete", "properties", "link",
152152
"Windows.ModernShare", "Windows.Share", "setdesktopwallpaper",
153153
"eject", "rename", "explore", "openinfiles", "extract",
154-
"copyaspath", "undelete", "empty",
154+
"copyaspath", "undelete", "empty", "Open in Windows Terminal",
155155
Win32API.ExtractStringFromDLL("shell32.dll", 30312), // SendTo menu
156156
Win32API.ExtractStringFromDLL("shell32.dll", 34593), // Add to collection
157157
};

src/Files/Helpers/ContextFlyoutItemHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseLayoutMenuItems(Curren
503503
},
504504
new ContextMenuFlyoutItemViewModel()
505505
{
506-
Text = "OpenInTerminal".GetLocalized(),
506+
Text = "OpenIn".GetLocalized() + " " + App.TerminalController.Model.GetDefaultTerminal().Name,
507507
Glyph = "\uE756",
508508
Command = commandsViewModel.OpenDirectoryInDefaultTerminalCommand,
509509
},

src/Files/Strings/en-US/Resources.resw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
<data name="Size" xml:space="preserve">
151151
<value>Size</value>
152152
</data>
153-
<data name="OpenInTerminal" xml:space="preserve">
154-
<value>Open in Terminal...</value>
153+
<data name="OpenIn" xml:space="preserve">
154+
<value>Open in</value>
155155
</data>
156156
<data name="PropertiesCreated.Text" xml:space="preserve">
157157
<value>Created:</value>

0 commit comments

Comments
 (0)