Merge pull request #58740 from timothyqiu/text-editor-separator
Remove extra separator when `TextEdit` is read only and unselectable
This commit is contained in:
commit
a3d54f9d13
1 changed files with 4 additions and 2 deletions
|
@ -5664,8 +5664,10 @@ void TextEdit::_generate_context_menu() {
|
|||
if (editable) {
|
||||
menu->add_item(RTR("Paste"), MENU_PASTE, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_paste") : Key::NONE);
|
||||
}
|
||||
menu->add_separator();
|
||||
if (is_selecting_enabled()) {
|
||||
if (selecting_enabled || editable) {
|
||||
menu->add_separator();
|
||||
}
|
||||
if (selecting_enabled) {
|
||||
menu->add_item(RTR("Select All"), MENU_SELECT_ALL, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_text_select_all") : Key::NONE);
|
||||
}
|
||||
if (editable) {
|
||||
|
|
Loading…
Reference in a new issue