mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Fix Class Search dialog not showing up
This commit is contained in:
parent
c731dd1ba6
commit
660e831e36
1 changed files with 5 additions and 6 deletions
|
|
@ -885,14 +885,13 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||||
} break;
|
} break;
|
||||||
case SEARCH_CLASSES: {
|
case SEARCH_CLASSES: {
|
||||||
|
|
||||||
if (tab_container->get_tab_count()==0)
|
|
||||||
break;
|
|
||||||
|
|
||||||
String current;
|
String current;
|
||||||
|
|
||||||
EditorHelp *eh = tab_container->get_child( tab_container->get_current_tab() )->cast_to<EditorHelp>();
|
if (tab_container->get_tab_count()>0) {
|
||||||
if (eh) {
|
EditorHelp *eh = tab_container->get_child( tab_container->get_current_tab() )->cast_to<EditorHelp>();
|
||||||
current=eh->get_class_name();
|
if (eh) {
|
||||||
|
current=eh->get_class_name();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
help_index->popup_centered_ratio(0.6);
|
help_index->popup_centered_ratio(0.6);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue