Check against the correct SDK version

Since the `self.setLastOutputName` is available in 4.12 (SDK 7.8.0) onwards.

CURA-8566
This commit is contained in:
Konstantinos Karmas 2021-09-14 16:05:04 +02:00
parent c593f62271
commit 4e89ee0ccc

View file

@ -109,8 +109,8 @@ class DigitalFactoryOutputDevice(ProjectOutputDevice):
def _onWriteStarted(self, new_name: Optional[str] = None) -> None:
self._writing = True
if new_name and Version(ApplicationMetadata.CuraSDKVersion) >= Version("7.7.0"):
# setLastOutputName is only supported sdk version 7.7.0 and up
if new_name and Version(ApplicationMetadata.CuraSDKVersion) >= Version("7.8.0"):
# setLastOutputName is only supported in sdk version 7.8.0 and up
self.setLastOutputName(new_name)
self.writeStarted.emit(self)