|
@@ -8,6 +8,8 @@ from UM.Logger import Logger
|
|
|
from UM.OutputDevice import OutputDeviceError
|
|
|
from UM.OutputDevice.ProjectOutputDevice import ProjectOutputDevice
|
|
|
from UM.Scene.SceneNode import SceneNode
|
|
|
+from UM.Version import Version
|
|
|
+from cura import ApplicationMetadata
|
|
|
from cura.API import Account
|
|
|
from cura.CuraApplication import CuraApplication
|
|
|
from .DigitalFactoryController import DigitalFactoryController
|
|
@@ -105,8 +107,11 @@ class DigitalFactoryOutputDevice(ProjectOutputDevice):
|
|
|
self.enabled = logged_in and self._controller.userAccountHasLibraryAccess()
|
|
|
self.enabledChanged.emit()
|
|
|
|
|
|
- def _onWriteStarted(self) -> None:
|
|
|
+ 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
|
|
|
+ self.setLastOutputName(new_name)
|
|
|
self.writeStarted.emit(self)
|
|
|
|
|
|
def _onWriteFinished(self) -> None:
|