From d9e3e4d395b84a90c9cbf6d75c7723032cb84e1c Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Fri, 29 Jul 2022 12:13:12 +0200 Subject: [PATCH] Made slice_uuid a public field Contributes to CURA-9031 --- cura/UI/PrintInformation.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cura/UI/PrintInformation.py b/cura/UI/PrintInformation.py index ce2a0cfed1..2b8e13b09f 100644 --- a/cura/UI/PrintInformation.py +++ b/cura/UI/PrintInformation.py @@ -38,7 +38,7 @@ class PrintInformation(QObject): self.initializeCuraMessagePrintTimeProperties() - self._slice_uuid: Optional[str] = None + self.slice_uuid: Optional[str] = None # Indexed by build plate number self._material_lengths = {} # type: Dict[int, List[float]] @@ -134,14 +134,6 @@ class PrintInformation(QObject): self._updateJobName() self.preSlicedChanged.emit() - @property - def slice_uuid(self) -> Optional[str]: - return self._slice_uuid - - @slice_uuid.setter - def slice_uuid(self, value: Optional[str]) -> None: - self._slice_uuid = value - @pyqtProperty(QObject, notify = currentPrintTimeChanged) def currentPrintTime(self) -> Duration: return self._current_print_time[self._active_build_plate]