From c2fcb11a7d32911a15d5687e5f8c4abf4b84db35 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Fri, 21 Oct 2016 14:25:04 -0700 Subject: [PATCH] Sort Post Processor list for dialog and make 'dumper' the default if none is set in the preferences. --- src/Mod/Path/PathScripts/PathJob.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathJob.py b/src/Mod/Path/PathScripts/PathJob.py index 98378be9c..a59d9de37 100644 --- a/src/Mod/Path/PathScripts/PathJob.py +++ b/src/Mod/Path/PathScripts/PathJob.py @@ -68,7 +68,7 @@ class ObjectPathJob: obj.addProperty("App::PropertyString", "Description", "Path", QtCore.QT_TRANSLATE_NOOP("App::Property","An optional description for this job")) obj.addProperty("App::PropertyEnumeration", "PostProcessor", "Output", QtCore.QT_TRANSLATE_NOOP("App::Property","Select the Post Processor")) obj.PostProcessor = allposts - obj.PostProcessor + obj.PostProcessor = 'dumper' obj.addProperty("App::PropertyString", "PostProcessorArgs", "Output", QtCore.QT_TRANSLATE_NOOP("App::Property", "Arguments for the Post Processor (specific to the script)")) obj.PostProcessorArgs = "" obj.addProperty("App::PropertyString", "MachineName", "Output", QtCore.QT_TRANSLATE_NOOP("App::Property","Name of the Machine that will use the CNC program")) @@ -256,6 +256,7 @@ class TaskPanel: posts = glob.glob(path + '/*_post.py') allposts.extend([ str(os.path.split(os.path.splitext(p)[0])[1][:-5]) for p in posts]) + allposts.sort() for post in allposts: self.form.cboPostProcessor.addItem(post)