You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Use versioned URL for "Online Documentation" buttons in the editor
This also avoids a redirect, making the page appear to load faster.
(cherry picked from commit 958912a33f)
This commit is contained in:
committed by
Rémi Verschelde
parent
f61ce6ee89
commit
92e6c2a33d
@@ -2863,7 +2863,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|||||||
emit_signal("request_help_search", "");
|
emit_signal("request_help_search", "");
|
||||||
} 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/");
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include "core/os/keyboard.h"
|
#include "core/os/keyboard.h"
|
||||||
#include "core/os/os.h"
|
#include "core/os/os.h"
|
||||||
#include "core/project_settings.h"
|
#include "core/project_settings.h"
|
||||||
|
#include "core/version.h"
|
||||||
#include "editor/editor_node.h"
|
#include "editor/editor_node.h"
|
||||||
#include "editor/editor_run_script.h"
|
#include "editor/editor_run_script.h"
|
||||||
#include "editor/editor_scale.h"
|
#include "editor/editor_scale.h"
|
||||||
@@ -1067,7 +1068,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();
|
||||||
|
|||||||
Reference in New Issue
Block a user