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

Method _save_editor_state

editor/script/script_editor_plugin.cpp:3054–3066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3052}
3053
3054void ScriptEditor::_save_editor_state(ScriptEditorBase *p_editor) {
3055 if (restoring_layout) {
3056 return;
3057 }
3058
3059 const String &path = p_editor->get_edited_resource()->get_path();
3060 if (!path.is_resource_file()) {
3061 return;
3062 }
3063
3064 script_editor_cache->set_value(path, "state", p_editor->get_edit_state());
3065 // This is saved later when we save the editor layout.
3066}
3067
3068void ScriptEditor::_save_layout() {
3069 if (restoring_layout) {

Callers

nothing calls this directly

Calls 5

is_resource_fileMethod · 0.80
get_pathMethod · 0.45
get_edited_resourceMethod · 0.45
set_valueMethod · 0.45
get_edit_stateMethod · 0.45

Tested by

no test coverage detected