MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / ensure_select_current

Method ensure_select_current

editor/script/script_editor_plugin.cpp:2027–2041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025}
2026
2027void ScriptEditor::ensure_select_current() {
2028 if (tab_container->get_tab_count() && tab_container->get_current_tab() >= 0) {
2029 ScriptEditorBase *se = _get_current_editor();
2030 if (se) {
2031 se->enable_editor(this);
2032
2033 if (!grab_focus_block && is_visible_in_tree()) {
2034 se->ensure_focus();
2035 }
2036 }
2037 }
2038 _update_find_replace_bar();
2039
2040 _update_selected_editor_menu();
2041}
2042
2043bool ScriptEditor::is_editor_floating() {
2044 return is_floating;

Callers 2

make_visibleMethod · 0.45
selected_notifyMethod · 0.45

Calls 4

get_tab_countMethod · 0.45
get_current_tabMethod · 0.45
enable_editorMethod · 0.45
ensure_focusMethod · 0.45

Tested by

no test coverage detected