diff --git a/src/Mod/Path/PathScripts/post/gcode_pre.py b/src/Mod/Path/PathScripts/post/gcode_pre.py index f6707fd3cda1..3110b892b8fb 100644 --- a/src/Mod/Path/PathScripts/post/gcode_pre.py +++ b/src/Mod/Path/PathScripts/post/gcode_pre.py @@ -112,11 +112,9 @@ def insert(filename, docname): # Create a custom and viewobject obj = PathCustom.Create("Custom") - res = PathOpGui.CommandResources('Custom', - PathCustom.Create, PathCustomGui.TaskPanelOpPage, - 'Path_Custom', - QtCore.QT_TRANSLATE_NOOP('Path_Custom', 'Custom'), '', '' - ) + res = PathOpGui.CommandResources('Custom', PathCustom.Create, + PathCustomGui.TaskPanelOpPage, + 'Path_Custom', 'Custom', '', '') obj.ViewObject.Proxy = PathOpGui.ViewProvider(obj.ViewObject, res) obj.ViewObject.Proxy.setDeleteObjectsOnReject(False) @@ -127,6 +125,7 @@ def insert(filename, docname): FreeCAD.ActiveDocument.recompute() + def parse(inputstring): "parse(inputstring): returns a parsed output string"