diff options
author | j.spijker@ultimaker.com <jelle spijker> | 2022-07-27 19:12:25 +0300 |
---|---|---|
committer | jspijker <j.spijker@ultimaker.com> | 2022-07-27 19:12:25 +0300 |
commit | a712e7517a650580080728520c88f40cc5507211 (patch) | |
tree | 337f425b022a636cb76af3f93e72aea4659cb5ac /cura/UI | |
parent | 2e23fe84ff4abbd2a3f356e88d9d910609addafb (diff) |
Add the received slice_uuid to the print information
Contributes to CURA-9031
Diffstat (limited to 'cura/UI')
-rw-r--r-- | cura/UI/PrintInformation.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cura/UI/PrintInformation.py b/cura/UI/PrintInformation.py index e18fc38247..ce2a0cfed1 100644 --- a/cura/UI/PrintInformation.py +++ b/cura/UI/PrintInformation.py @@ -38,6 +38,8 @@ class PrintInformation(QObject): self.initializeCuraMessagePrintTimeProperties() + self._slice_uuid: Optional[str] = None + # Indexed by build plate number self._material_lengths = {} # type: Dict[int, List[float]] self._material_weights = {} # type: Dict[int, List[float]] @@ -132,6 +134,14 @@ 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] |