| 2884 | } |
| 2885 | |
| 2886 | void ScriptEditor::apply_scripts() const { |
| 2887 | for (int i = 0; i < tab_container->get_tab_count(); i++) { |
| 2888 | ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i)); |
| 2889 | if (!se) { |
| 2890 | continue; |
| 2891 | } |
| 2892 | se->insert_final_newline(); |
| 2893 | se->apply_code(); |
| 2894 | } |
| 2895 | } |
| 2896 | |
| 2897 | void ScriptEditor::reload_scripts(bool p_refresh_only) { |
| 2898 | // Call deferred to make sure it runs on the main thread. |
no test coverage detected