mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 17:19:00 +08:00
Made slice_uuid a public field
Contributes to CURA-9031
This commit is contained in:
parent
a88e31eddd
commit
d9e3e4d395
@ -38,7 +38,7 @@ class PrintInformation(QObject):
|
|||||||
|
|
||||||
self.initializeCuraMessagePrintTimeProperties()
|
self.initializeCuraMessagePrintTimeProperties()
|
||||||
|
|
||||||
self._slice_uuid: Optional[str] = None
|
self.slice_uuid: Optional[str] = None
|
||||||
|
|
||||||
# Indexed by build plate number
|
# Indexed by build plate number
|
||||||
self._material_lengths = {} # type: Dict[int, List[float]]
|
self._material_lengths = {} # type: Dict[int, List[float]]
|
||||||
@ -134,14 +134,6 @@ class PrintInformation(QObject):
|
|||||||
self._updateJobName()
|
self._updateJobName()
|
||||||
self.preSlicedChanged.emit()
|
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)
|
@pyqtProperty(QObject, notify = currentPrintTimeChanged)
|
||||||
def currentPrintTime(self) -> Duration:
|
def currentPrintTime(self) -> Duration:
|
||||||
return self._current_print_time[self._active_build_plate]
|
return self._current_print_time[self._active_build_plate]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user