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

This commit is contained in:
wmayer
2020-10-01 16:03:08 +02:00
parent 5876a5287b
commit 393da0d6d9

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: