Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2017-11-21 17:12:17 +0300
committerLipu Fei <lipu.fei815@gmail.com>2017-11-21 17:12:56 +0300
commit8782e2e529c3abde36e5d473e18d7293cb59090c (patch)
treeb67390afec01d8938b18b91e32fc8d7b2b3ea982 /cura/PrintInformation.py
parent92e273fba9be6db4d883189a22ffcffa2ca5bdf8 (diff)
Rename parameters
CURA-4581
Diffstat (limited to 'cura/PrintInformation.py')
-rw-r--r--cura/PrintInformation.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py
index 0e10eda02a..0a5db439c3 100644
--- a/cura/PrintInformation.py
+++ b/cura/PrintInformation.py
@@ -264,13 +264,14 @@ class PrintInformation(QObject):
def jobName(self):
return self._job_name
- def _updateJobName(self, empty_name = False):
+ def _updateJobName(self, is_project_name_empty = False):
# if the project name is set, we use the project name as the job name, so the job name should not get updated
# if a model file is loaded after that.
if self._project_name != "":
- if empty_name:
+ if is_project_name_empty:
self._project_name = ""
- return
+ else:
+ return
if self._base_name == "":
self._job_name = ""
@@ -312,7 +313,7 @@ class PrintInformation(QObject):
if name.endswith(".curaproject"):
name = name[:name.rfind(".curaproject")]
self._base_name = name
- self._updateJobName(empty_name = is_empty)
+ self._updateJobName(is_project_name_empty = is_empty)
## Created an acronymn-like abbreviated machine name from the currently active machine name
# Called each time the global stack is switched