diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2017-11-21 17:12:17 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-11-21 17:12:56 +0300 |
commit | 8782e2e529c3abde36e5d473e18d7293cb59090c (patch) | |
tree | b67390afec01d8938b18b91e32fc8d7b2b3ea982 /cura/PrintInformation.py | |
parent | 92e273fba9be6db4d883189a22ffcffa2ca5bdf8 (diff) |
Rename parameters
CURA-4581
Diffstat (limited to 'cura/PrintInformation.py')
-rw-r--r-- | cura/PrintInformation.py | 9 |
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 |