| 3052 | } |
| 3053 | |
| 3054 | void 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 | |
| 3068 | void ScriptEditor::_save_layout() { |
| 3069 | if (restoring_layout) { |
nothing calls this directly
no test coverage detected