mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +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:
parent
25203e24c4
commit
3a090ff25e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue