Skip to content

Commit

Permalink
Disable corruption check on autosave
Browse files Browse the repository at this point in the history
except in Debug builds
  • Loading branch information
Jojo-Schmitz committed Dec 1, 2024
1 parent cd22410 commit bfcfe70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/project/internal/projectautosaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,12 @@ void ProjectAutoSaver::onTrySave()
return;
}

#ifndef NDEBUG
if (!project->canSave()) {
LOGD() << "[autosave] project could not be saved";
return;
}
#endif

muse::io::path_t projectPath = this->projectPath(project);
muse::io::path_t savePath = project->isNewlyCreated() ? projectPath : projectAutoSavePath(projectPath);
Expand Down

0 comments on commit bfcfe70

Please sign in to comment.