Revert "Revert "Use optional last output (file) name from output-dev to set project name.""

This reverts commit 24ff3692bd.
This commit is contained in:
Konstantinos Karmas 2021-09-15 12:26:18 +02:00
parent 98eba28885
commit 87add2c8de
2 changed files with 13 additions and 5 deletions

View file

@ -111,7 +111,7 @@ class DigitalFactoryOutputDevice(ProjectOutputDevice):
self._writing = True
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.setLastOutputName(new_name) # On saving, the user can change the name, this should propagate.
self.writeStarted.emit(self)
def _onWriteFinished(self) -> None: