Browse Source

Merge pull request #58249 from Calinou/editor-online-docs-use-versioned-url

Rémi Verschelde 3 years ago
parent
commit
5b18a81be9
2 changed files with 3 additions and 2 deletions
  1. 1 1
      editor/editor_node.cpp
  2. 2 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/editor_node.cpp

@@ -2908,7 +2908,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
 			command_palette->open_popup();
 			command_palette->open_popup();
 		} break;
 		} break;
 		case HELP_DOCS: {
 		case HELP_DOCS: {
-			OS::get_singleton()->shell_open("https://docs.godotengine.org/");
+			OS::get_singleton()->shell_open(VERSION_DOCS_URL "/");
 		} break;
 		} break;
 		case HELP_QA: {
 		case HELP_QA: {
 			OS::get_singleton()->shell_open("https://godotengine.org/qa/");
 			OS::get_singleton()->shell_open("https://godotengine.org/qa/");

+ 2 - 1
editor/plugins/script_editor_plugin.cpp

@@ -36,6 +36,7 @@
 #include "core/io/resource_loader.h"
 #include "core/io/resource_loader.h"
 #include "core/os/keyboard.h"
 #include "core/os/keyboard.h"
 #include "core/os/os.h"
 #include "core/os/os.h"
+#include "core/version.h"
 #include "editor/debugger/editor_debugger_node.h"
 #include "editor/debugger/editor_debugger_node.h"
 #include "editor/debugger/script_editor_debugger.h"
 #include "editor/debugger/script_editor_debugger.h"
 #include "editor/editor_file_dialog.h"
 #include "editor/editor_file_dialog.h"
@@ -1281,7 +1282,7 @@ void ScriptEditor::_menu_option(int p_option) {
 			help_search_dialog->popup_dialog();
 			help_search_dialog->popup_dialog();
 		} break;
 		} break;
 		case SEARCH_WEBSITE: {
 		case SEARCH_WEBSITE: {
-			OS::get_singleton()->shell_open("https://docs.godotengine.org/");
+			OS::get_singleton()->shell_open(VERSION_DOCS_URL "/");
 		} break;
 		} break;
 		case WINDOW_NEXT: {
 		case WINDOW_NEXT: {
 			_history_forward();
 			_history_forward();