MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / scheduleAutoSave

Method scheduleAutoSave

app/src/DataModel/ProjectModel.cpp:7686–7695  ·  view source on GitHub ↗

* @brief Starts the debounced autosave when saving is currently permitted; the API mutation * path calls this so programmatic edits persist without an explicit save. */

Source from the content-addressed store, hash-verified

7684 * path calls this so programmatic edits persist without an explicit save.
7685 */
7686void DataModel::ProjectModel::scheduleAutoSave()
7687{
7688 if (m_autoSaveSuspended || m_filePath.isEmpty() || m_locked)
7689 return;
7690
7691 if (AppState::instance().operationMode() != SerialStudio::ProjectFile)
7692 return;
7693
7694 m_autoSaveTimer->start();
7695}
7696
7697/**
7698 * @brief Suspends or resumes the debounced autosave (used by the API batch endpoint).

Callers 1

executeMethod · 0.80

Calls 3

isEmptyMethod · 0.80
operationModeMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected