From 097b2c982e08c5632c4af407449344f94b7b5403 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Sun, 7 Feb 2021 06:28:47 -0600 Subject: [PATCH] Fixes #4555 --- src/Mod/Path/PathScripts/post/gcode_pre.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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"