client: enforce config option to not check file size

This commit is contained in:
David Anderson 2024-02-29 16:45:27 -08:00
parent 812b163aa3
commit 3f70040b3a
1 changed files with 1 additions and 0 deletions

View File

@ -507,6 +507,7 @@ int FILE_INFO::check_size() {
if (gstate.global_prefs.dont_verify_images && is_image_file(path)) {
return 0;
}
if (cc_config.dont_check_file_sizes) return 0;
if (nbytes && (size != nbytes)) {
delete_project_owned_file(path, true);
status = FILE_NOT_PRESENT;