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

Method is_unsaved

editor/script/script_text_editor.cpp:703–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701}
702
703bool ScriptTextEditor::is_unsaved() {
704 const bool unsaved =
705 code_editor->get_text_editor()->get_version() != code_editor->get_text_editor()->get_saved_version() ||
706 script->get_path().is_empty(); // In memory.
707 return unsaved;
708}
709
710Variant ScriptTextEditor::get_edit_state() {
711 return code_editor->get_edit_state();

Callers

nothing calls this directly

Calls 5

get_text_editorMethod · 0.80
get_saved_versionMethod · 0.80
get_versionMethod · 0.45
is_emptyMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected