mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Merge pull request #20377 from Ultimaker/CURA-12403_project-names-revert-to-previous-name
CURA-12403 Project names revert to previous name
This commit is contained in:
commit
368094bb5f
1 changed files with 1 additions and 1 deletions
|
@ -449,6 +449,6 @@ class PrintInformation(QObject):
|
||||||
"""If this is a sort of output 'device' (like local or online file storage, rather than a printer),
|
"""If this is a sort of output 'device' (like local or online file storage, rather than a printer),
|
||||||
the user could have altered the file-name, and thus the project name should be altered as well."""
|
the user could have altered the file-name, and thus the project name should be altered as well."""
|
||||||
if isinstance(output_device, ProjectOutputDevice):
|
if isinstance(output_device, ProjectOutputDevice):
|
||||||
new_name = output_device.getLastOutputName()
|
new_name = output_device.popLastOutputName()
|
||||||
if new_name is not None:
|
if new_name is not None:
|
||||||
self.setJobName(os.path.splitext(os.path.basename(new_name))[0])
|
self.setJobName(os.path.splitext(os.path.basename(new_name))[0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue