Commit 35a99abc authored by Jason Lin's avatar Jason Lin Committed by Commit Bot

crostini: clean up SWA terminal's menu

* Rename menu item "Options" to "Settings"
* Remove menu item "Find" since we are not supporting it for now.

Bug: 1016190
Change-Id: I632cbe04c52e83822ffa40a423d96d004f57153e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040503Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
Reviewed-by: default avatarBen Wells <benwells@chromium.org>
Auto-Submit: Jason Lin <lxj@google.com>
Commit-Queue: Jason Lin <lxj@google.com>
Cr-Commit-Position: refs/heads/master@{#739168}
parent 002a81c4
...@@ -31,14 +31,13 @@ TerminalSystemAppMenuModel::TerminalSystemAppMenuModel( ...@@ -31,14 +31,13 @@ TerminalSystemAppMenuModel::TerminalSystemAppMenuModel(
TerminalSystemAppMenuModel::~TerminalSystemAppMenuModel() {} TerminalSystemAppMenuModel::~TerminalSystemAppMenuModel() {}
void TerminalSystemAppMenuModel::Build() { void TerminalSystemAppMenuModel::Build() {
AddItemWithStringId(IDC_OPTIONS, IDS_OPTIONS); AddItemWithStringId(IDC_OPTIONS, IDS_SETTINGS);
if (base::FeatureList::IsEnabled(features::kTerminalSystemAppSplits)) { if (base::FeatureList::IsEnabled(features::kTerminalSystemAppSplits)) {
AddItemWithStringId(IDC_TERMINAL_SPLIT_VERTICAL, AddItemWithStringId(IDC_TERMINAL_SPLIT_VERTICAL,
IDS_APP_TERMINAL_SPLIT_VERTICAL); IDS_APP_TERMINAL_SPLIT_VERTICAL);
AddItemWithStringId(IDC_TERMINAL_SPLIT_HORIZONTAL, AddItemWithStringId(IDC_TERMINAL_SPLIT_HORIZONTAL,
IDS_APP_TERMINAL_SPLIT_HORIZONTAL); IDS_APP_TERMINAL_SPLIT_HORIZONTAL);
} }
AddItemWithStringId(IDC_FIND, IDS_FIND);
} }
bool TerminalSystemAppMenuModel::IsCommandIdEnabled(int command_id) const { bool TerminalSystemAppMenuModel::IsCommandIdEnabled(int command_id) const {
...@@ -57,8 +56,6 @@ void TerminalSystemAppMenuModel::ExecuteCommand(int command_id, ...@@ -57,8 +56,6 @@ void TerminalSystemAppMenuModel::ExecuteCommand(int command_id,
{IDC_TERMINAL_SPLIT_VERTICAL, "splitv"}, {IDC_TERMINAL_SPLIT_VERTICAL, "splitv"},
// Split the currently selected pane horizontally. // Split the currently selected pane horizontally.
{IDC_TERMINAL_SPLIT_HORIZONTAL, "splith"}, {IDC_TERMINAL_SPLIT_HORIZONTAL, "splith"},
// Open the find dialog.
{IDC_FIND, "find"},
}); });
auto it = kCommands->find(command_id); auto it = kCommands->find(command_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment