mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 11:21:14 -07:00
Fixed an issue that doesn't generate the jobname again once the user removes the models. - CURA-4276
This commit is contained in:
parent
b0916e4b67
commit
c3d6023418
2 changed files with 3 additions and 2 deletions
|
|
@ -265,7 +265,8 @@ class PrintInformation(QObject):
|
||||||
# extension. This cuts the extension off if necessary.
|
# extension. This cuts the extension off if necessary.
|
||||||
name = os.path.splitext(name)[0]
|
name = os.path.splitext(name)[0]
|
||||||
|
|
||||||
if self._base_name == "" and self._base_name != name:
|
# name is "" when I first had some meshes and afterwards I deleted them so the naming should start again
|
||||||
|
if name == "" or (self._base_name == "" and self._base_name != name):
|
||||||
self._base_name = name
|
self._base_name = name
|
||||||
self._updateJobName()
|
self._updateJobName()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ Item {
|
||||||
}
|
}
|
||||||
if (activity == false){
|
if (activity == false){
|
||||||
//When there is no mesh in the buildplate; the printJobTextField is set to an empty string so it doesn't set an empty string as a jobName (which is later used for saving the file)
|
//When there is no mesh in the buildplate; the printJobTextField is set to an empty string so it doesn't set an empty string as a jobName (which is later used for saving the file)
|
||||||
PrintInformation.setJobName('')
|
PrintInformation.setBaseName('')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue