mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Remove unused _is_ucp
CURA-11403
This commit is contained in:
parent
e075409243
commit
6bbdd54342
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user