diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-17 19:18:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 19:18:55 +0100 |
commit | 5b18a81be9736ad7f9824ea615dbe460a741b76c (patch) | |
tree | 58ff6eb37d6ce71ba8fc7f818c52b8855f51c3f3 | |
parent | 0898f53598a89b3453682b1fce444f7314d0d9e9 (diff) | |
parent | 958912a33f18650b7d06fa5157d61e3a528281d3 (diff) |
Merge pull request #58249 from Calinou/editor-online-docs-use-versioned-url
-rw-r--r-- | editor/editor_node.cpp | 2 | ||||
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index a10eecbca1..cda5e6b537 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2908,7 +2908,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { command_palette->open_popup(); } break; case HELP_DOCS: { - OS::get_singleton()->shell_open("https://docs.godotengine.org/"); + OS::get_singleton()->shell_open(VERSION_DOCS_URL "/"); } break; case HELP_QA: { OS::get_singleton()->shell_open("https://godotengine.org/qa/"); diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 205464daee..bd4064708b 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -36,6 +36,7 @@ #include "core/io/resource_loader.h" #include "core/os/keyboard.h" #include "core/os/os.h" +#include "core/version.h" #include "editor/debugger/editor_debugger_node.h" #include "editor/debugger/script_editor_debugger.h" #include "editor/editor_file_dialog.h" @@ -1281,7 +1282,7 @@ void ScriptEditor::_menu_option(int p_option) { help_search_dialog->popup_dialog(); } break; case SEARCH_WEBSITE: { - OS::get_singleton()->shell_open("https://docs.godotengine.org/"); + OS::get_singleton()->shell_open(VERSION_DOCS_URL "/"); } break; case WINDOW_NEXT: { _history_forward(); |