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:
authorVictor Larchenko <victor99992@gmail.com>2016-10-21 12:26:34 +0300
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2016-12-23 23:53:15 +0300
commit9da00563e544d0a3391f2336aee4f10e31aa4af4 (patch)
treeef119c8ae18b4b825c40e9f76a0bb8e31f1553d0 /cura/PrintInformation.py
parent4ba8033c2aa4f8e009720193a92204772c90910c (diff)
T553: Fixed job name
Diffstat (limited to 'cura/PrintInformation.py')
-rw-r--r--cura/PrintInformation.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py
index b65101ecc7..fa0b43993e 100644
--- a/cura/PrintInformation.py
+++ b/cura/PrintInformation.py
@@ -49,6 +49,8 @@ class PrintInformation(QObject):
self._material_lengths = []
self._material_weights = []
+ self._pre_sliced = False
+
self._backend = Application.getInstance().getBackend()
if self._backend:
self._backend.printDurationMessage.connect(self._onPrintDurationMessage)
@@ -122,7 +124,9 @@ class PrintInformation(QObject):
def createJobName(self, base_name):
base_name = self._stripAccents(base_name)
self._setAbbreviatedMachineName()
- if Preferences.getInstance().getValue("cura/jobname_prefix"):
+ if self._pre_sliced:
+ return "Pre-sliced_" + base_name
+ elif Preferences.getInstance().getValue("cura/jobname_prefix"):
return self._abbr_machine + "_" + base_name
else:
return base_name
@@ -150,4 +154,4 @@ class PrintInformation(QObject):
## Utility method that strips accents from characters (eg: รข -> a)
def _stripAccents(self, str):
- return ''.join(char for char in unicodedata.normalize('NFD', str) if unicodedata.category(char) != 'Mn') \ No newline at end of file
+ return ''.join(char for char in unicodedata.normalize('NFD', str) if unicodedata.category(char) != 'Mn')