mirror of
https://github.com/godotengine/godot.git
synced 2025-01-29 13:20:43 +00:00
Merge pull request #6978 from volzhs/dup-search-menu
Fix 2 search menus are shown
This commit is contained in:
commit
2001e0f75f
@ -1909,19 +1909,14 @@ void ScriptEditor::_update_selected_editor_menu() {
|
||||
se->get_edit_menu()->hide();
|
||||
}
|
||||
|
||||
EditorHelp *eh = tab_container->get_child(i)->cast_to<EditorHelp>();
|
||||
|
||||
if (eh) {
|
||||
|
||||
if (current)
|
||||
script_search_menu->show();
|
||||
else
|
||||
script_search_menu->hide();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
EditorHelp *eh=tab_container->get_current_tab_control()->cast_to<EditorHelp>();
|
||||
if (eh) {
|
||||
script_search_menu->show();
|
||||
} else {
|
||||
script_search_menu->hide();
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptEditor::_update_history_pos(int p_new_pos) {
|
||||
|
Loading…
Reference in New Issue
Block a user