You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Hide "Open documentation" context menu button in project manager
The EditorNode or internals of the ScriptEditor are not fully loaded in the project manager leading to crashes when the context menu tries to open an editor build-in documentation page.
This commit is contained in:
@@ -1605,7 +1605,7 @@ void EditorProperty::_update_popup() {
|
||||
menu->add_icon_item(theme_cache.revert_icon, TTR("Revert Value"), MENU_REVERT_VALUE);
|
||||
}
|
||||
}
|
||||
if (!doc_path.is_empty()) {
|
||||
if (!doc_path.is_empty() && ScriptEditor::get_singleton() && EditorNode::get_singleton()) {
|
||||
menu->add_separator();
|
||||
menu->add_icon_item(theme_cache.help_icon, TTR("Open Documentation"), MENU_OPEN_DOCUMENTATION);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user