diff --git a/freecad/asm3/gui.py b/freecad/asm3/gui.py index 61fe3a4..3cf62be 100644 --- a/freecad/asm3/gui.py +++ b/freecad/asm3/gui.py @@ -103,7 +103,9 @@ class SelectionObserver: hasSelection = FreeCADGui.Selection.hasSelection() for cmd in self.cmds: cmd.onSelectionChange(hasSelection) - FreeCADGui.updateCommands() + update = getattr(FreeCADGui, 'updateCommands', None) + if update: + update() def addSelection(self,docname,objname,subname,_pos): self.onChange()