mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Always set the project name as the one provided by the user
There was an inconsistent behavior between saving a project file to disk (where the printer short name was readded after saving) and saving to the DigitalLibrary (where the printer short was NOT added again). This commit fixes that by making sure that whatever the user put as the name of the file, will be the name of the project within Cura. CURA-8566
This commit is contained in:
parent
52c224c779
commit
6d9978e8f3
1 changed files with 1 additions and 4 deletions
|
@ -449,7 +449,4 @@ class PrintInformation(QObject):
|
|||
if isinstance(output_device, ProjectOutputDevice):
|
||||
new_name = output_device.getLastOutputName()
|
||||
if new_name is not None:
|
||||
if len(os.path.dirname(new_name)) > 0:
|
||||
self.setProjectName(new_name)
|
||||
else:
|
||||
self.setJobName(new_name)
|
||||
self.setJobName(os.path.splitext(os.path.basename(new_name))[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue