Skip to content

Commit

Permalink
Draft: do not show Draft Tray toolbar when importing only the Draft m…
Browse files Browse the repository at this point in the history
…odule
  • Loading branch information
yorikvanhavre committed Feb 23, 2015
1 parent fac9d35 commit 2fdb1ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Mod/Draft/Draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5313,11 +5313,3 @@ def onChanged(self,vobj,prop):
if vobj.Object.InList[0].isDerivedFrom("Drawing::FeaturePage"):
vobj.Object.InList[0].touch()




#----End of Python Features Definitions----#

if gui:
if not hasattr(FreeCADGui,"Snapper"):
import DraftSnap
4 changes: 4 additions & 0 deletions src/Mod/Draft/DraftGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1791,3 +1791,7 @@ def Deactivated(self):

if not hasattr(FreeCADGui,"draftToolBar"):
FreeCADGui.draftToolBar = DraftToolBar()
#----End of Python Features Definitions----#

if not hasattr(FreeCADGui,"Snapper"):
import DraftSnap

0 comments on commit 2fdb1ae

Please sign in to comment.