mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06: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
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ class DigitalFactoryOutputDevice(ProjectOutputDevice):
|
||||||
|
|
||||||
def _onWriteStarted(self, new_name: Optional[str] = None) -> None:
|
def _onWriteStarted(self, new_name: Optional[str] = None) -> None:
|
||||||
self._writing = True
|
self._writing = True
|
||||||
if new_name and Version(ApplicationMetadata.CuraSDKVersion) >= Version("7.7.0"):
|
if new_name and Version(ApplicationMetadata.CuraSDKVersion) >= Version("7.8.0"):
|
||||||
# setLastOutputName is only supported sdk version 7.7.0 and up
|
# setLastOutputName is only supported in sdk version 7.8.0 and up
|
||||||
self.setLastOutputName(new_name)
|
self.setLastOutputName(new_name)
|
||||||
self.writeStarted.emit(self)
|
self.writeStarted.emit(self)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue