* @brief Debounce a snapshot when the project becomes modified. */
| 396 | * @brief Debounce a snapshot when the project becomes modified. |
| 397 | */ |
| 398 | void Misc::BackupManager::onProjectModifiedChanged() |
| 399 | { |
| 400 | if (!m_enabled) |
| 401 | return; |
| 402 | |
| 403 | if (!DataModel::ProjectModel::instance().modified()) |
| 404 | return; |
| 405 | |
| 406 | m_debounceTimer->start(); |
| 407 | } |
| 408 | |
| 409 | /** |
| 410 | * @brief Debounce a snapshot for an edit the dirty flag suppresses (e.g. parser-only changes on a |