gui: sync command button status

This commit is contained in:
Zheng, Lei 2020-04-08 05:56:57 +08:00
parent 68d31787ce
commit 06f8edd493

View File

@ -103,6 +103,7 @@ class SelectionObserver:
hasSelection = FreeCADGui.Selection.hasSelection()
for cmd in self.cmds:
cmd.onSelectionChange(hasSelection)
FreeCADGui.updateCommands()
def addSelection(self,docname,objname,subname,_pos):
self.onChange()