Gui: [skip ci] add an alias for Gui.isCommandActive
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user