FEM: ccx tools solver task panel, fix editor prefs

This commit is contained in:
Bernd Hahnebach
2019-03-06 07:46:43 +01:00
committed by wmayer
parent c3fb5edc41
commit 2e1e942a9b

View File

@@ -300,10 +300,11 @@ class _TaskPanelFemSolverCalculix:
def editCalculixInputFile(self):
print('editCalculixInputFile {}'.format(self.fea.inp_file_name))
if self.ccx_prefs.GetBool("UseInternalEditor", True):
ccx_prefs = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Fem/Ccx")
if ccx_prefs.GetBool("UseInternalEditor", True):
FemGui.open(self.fea.inp_file_name)
else:
ext_editor_path = self.ccx_prefs.GetString("ExternalEditorPath", "")
ext_editor_path = ccx_prefs.GetString("ExternalEditorPath", "")
if ext_editor_path:
self.start_ext_editor(ext_editor_path, self.fea.inp_file_name)
else: