Просмотр исходного кода

Re-enable compression

I had disabled that in an attempt to fix the bytes-to-str conversion issue, but it turned out to not be the cause. Compression is fine.

Contributes to issue CURA-8055.
Ghostkeeper 3 лет назад
Родитель
Сommit
62bc9be22b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cura/Machines/Models/MaterialManagementModel.py

+ 1 - 1
cura/Machines/Models/MaterialManagementModel.py

@@ -309,7 +309,7 @@ class MaterialManagementModel(QObject):
         """
         registry = CuraContainerRegistry.getInstance()
 
-        archive = zipfile.ZipFile(file_path.toLocalFile(), "w")
+        archive = zipfile.ZipFile(file_path.toLocalFile(), "w", compression = zipfile.ZIP_DEFLATED)
         for metadata in registry.findInstanceContainersMetadata(type = "material"):
             if metadata["base_file"] != metadata["id"]:  # Only process base files.
                 continue