From 85536b113444574def2f783b7ce0083a53a7ba76 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 23 Mar 2022 23:29:58 +0100 Subject: [PATCH] Removed the online docs link from the top of the script editor. --- editor/plugins/script_editor_plugin.cpp | 10 ---------- editor/plugins/script_editor_plugin.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 550a5f152..f56a40ed8 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1113,9 +1113,6 @@ void ScriptEditor::_menu_option(int p_option) { case SEARCH_HELP: { help_search_dialog->popup_dialog(); } break; - case SEARCH_WEBSITE: { - OS::get_singleton()->shell_open(VERSION_DOCS_URL "/"); - } break; case WINDOW_NEXT: { _history_forward(); } break; @@ -1475,7 +1472,6 @@ void ScriptEditor::_notification(int p_what) { } case NOTIFICATION_THEME_CHANGED: { help_search->set_icon(get_icon("HelpSearch", "EditorIcons")); - site_search->set_icon(get_icon("Instance", "EditorIcons")); script_forward->set_icon(get_icon("Forward", "EditorIcons")); script_back->set_icon(get_icon("Back", "EditorIcons")); @@ -3489,12 +3485,6 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) { menu_hb->add_spacer(); - site_search = memnew(ToolButton); - site_search->set_text(TTR("Online Docs")); - site_search->connect("pressed", this, "_menu_option", varray(SEARCH_WEBSITE)); - menu_hb->add_child(site_search); - site_search->set_tooltip(TTR("Open Pandemonium online documentation.")); - help_search = memnew(ToolButton); help_search->set_text(TTR("Search Help")); help_search->connect("pressed", this, "_menu_option", varray(SEARCH_HELP)); diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index 795b7125c..1a99e150c 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -190,7 +190,6 @@ class ScriptEditor : public PanelContainer { SEARCH_IN_FILES, REPLACE_IN_FILES, SEARCH_HELP, - SEARCH_WEBSITE, HELP_SEARCH_FIND, HELP_SEARCH_FIND_NEXT, HELP_SEARCH_FIND_PREVIOUS, @@ -234,7 +233,6 @@ class ScriptEditor : public PanelContainer { PopupMenu *theme_submenu; Button *help_search; - Button *site_search; EditorHelpSearch *help_search_dialog; ItemList *script_list;