Remove unused _is_ucp

CURA-11403
This commit is contained in:
c.lamboo 2024-02-20 16:17:39 +01:00
parent e075409243
commit 6bbdd54342
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,8 @@
# Copyright (c) 2020 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional
import configparser
from io import StringIO
from threading import Lock
@ -25,10 +27,9 @@ USER_SETTINGS_PATH = "Cura/user-settings.json"
class ThreeMFWorkspaceWriter(WorkspaceWriter):
def __init__(self):
super().__init__()
self._ucp_model = None
self._is_ucp = False
self._ucp_model: Optional[SettingsExportModel] = None
def setExportModel(self, model):
def setExportModel(self, model: SettingsExportModel) -> None:
if self._ucp_model != model:
self._ucp_model = model

View File

@ -61,7 +61,6 @@ class ThreeMFWriter(MeshWriter):
self._unit_matrix_string = ThreeMFWriter._convertMatrixToString(Matrix())
self._archive: Optional[zipfile.ZipFile] = None
self._store_archive = False
self._is_ucp = False
@staticmethod
def _convertMatrixToString(matrix):
@ -436,6 +435,5 @@ class ThreeMFWriter(MeshWriter):
return extra_settings
def exportUcp(self):
self._is_ucp = True
self._config_dialog = UCPDialog()
self._config_dialog.show()