diff --git a/plugins/builtin/source/content/background_services.cpp b/plugins/builtin/source/content/background_services.cpp index 471489095..1ee4f71e0 100644 --- a/plugins/builtin/source/content/background_services.cpp +++ b/plugins/builtin/source/content/background_services.cpp @@ -69,7 +69,7 @@ namespace hex::plugin::builtin { if (autoBackupTime > 0 && (now - lastBackupTime) > std::chrono::seconds(autoBackupTime)) { lastBackupTime = now; - if (ImHexApi::Provider::isValid()) { + if (ImHexApi::Provider::isValid() && ImHexApi::Provider::isDirty()) { for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Backups)) { const auto fileName = hex::format("auto_backup.{:%y%m%d_%H%M%S}.hexproj", fmt::gmtime(std::chrono::system_clock::now())); if (ProjectFile::store(path / fileName, false))