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

Method update_script_times

editor/script/script_editor_plugin.cpp:2877–2884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2875}
2876
2877void ScriptEditor::update_script_times() {
2878 for (int i = 0; i < tab_container->get_tab_count(); i++) {
2879 ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_tab_control(i));
2880 if (se) {
2881 se->edited_file_data.last_modified_time = FileAccess::get_modified_time(se->edited_file_data.path);
2882 }
2883 }
2884}
2885
2886void ScriptEditor::apply_scripts() const {
2887 for (int i = 0; i < tab_container->get_tab_count(); i++) {

Callers 1

Calls 2

get_tab_controlMethod · 0.80
get_tab_countMethod · 0.45

Tested by

no test coverage detected