Gui: [skip ci] add an alias for Gui.isCommandActive

This commit is contained in:
wmayer
2020-10-01 16:03:08 +02:00
parent 2b77f0f915
commit e75834321b

View File

@@ -34,8 +34,10 @@ import FreeCAD, FreeCADGui
# shortcuts
Gui = FreeCADGui
# this is to keep old code working
Gui.listCommands = Gui.Command.listAll
Gui.isCommandActive = lambda cmd: Gui.Command.get(cmd).isActive()
# Important definitions
class Workbench: