* @brief Starts the debounced autosave when saving is currently permitted; the API mutation * path calls this so programmatic edits persist without an explicit save. */
| 7684 | * path calls this so programmatic edits persist without an explicit save. |
| 7685 | */ |
| 7686 | void 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). |
no test coverage detected