diff options
Diffstat (limited to 'BoxerGui.py')
-rw-r--r-- | BoxerGui.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/BoxerGui.py b/BoxerGui.py index 5e0ce43..5b04a1d 100644 --- a/BoxerGui.py +++ b/BoxerGui.py @@ -10,12 +10,10 @@ class BoxerDocumentObserver: pass def slotDeletedDocument(self, doc): - print('slotDeletedDocument') - gui.dockWidget.ui.generateButton.setEnabled(False) + gui.dockWidget.ui.generateButton.setEnabled(FreeCAD.ActiveDocument is not None) def slotActivateDocument(self, doc): - print('slotActivateDocument') - gui.dockWidget.ui.generateButton.setEnabled(True) + gui.dockWidget.ui.generateButton.setEnabled(FreeCAD.ActiveDocument is not None) class BoxerGui(object): |