Gui: fix call of FreeCADGui.Command.isActive()
This commit is contained in:
parent
490da82590
commit
4edc0fbca6
|
@ -12,7 +12,7 @@ from .FCADLogger import FCADLogger
|
||||||
|
|
||||||
def _isCommandActive(cmd):
|
def _isCommandActive(cmd):
|
||||||
try:
|
try:
|
||||||
return FreeCADGui.Command.isActive(cmd)
|
return FreeCADGui.Command.isActive(FreeCADGui.Command.get(cmd))
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user