mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 13:35:56 +08:00
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:
parent
c593f62271
commit
4e89ee0ccc
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user