| 2025 | } |
| 2026 | |
| 2027 | void 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 | |
| 2043 | bool ScriptEditor::is_editor_floating() { |
| 2044 | return is_floating; |
no test coverage detected