Removed the online docs link from the top of the script editor.

This commit is contained in:
Relintai 2022-03-23 23:29:58 +01:00
parent c054c4db58
commit 85536b1134
2 changed files with 0 additions and 12 deletions

View File

@ -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));

View File

@ -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;