FEM: Disable Show result button if there are no results in analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
749e772d85
commit
70318d7820
|
@ -174,8 +174,7 @@ class _CommandMechanicalShowResult:
|
|||
FreeCADGui.Control.showDialog(taskd)
|
||||
|
||||
def IsActive(self):
|
||||
import FemGui
|
||||
return FreeCADGui.ActiveDocument is not None and FemGui.getActiveAnalysis() is not None
|
||||
return FreeCADGui.ActiveDocument is not None and results_present()
|
||||
|
||||
|
||||
class _FemAnalysis:
|
||||
|
|
Loading…
Reference in New Issue
Block a user