Skip to content

Commit

Permalink
Draft: Removed the 'Hide Draft Workbench' Draft preference since we n…
Browse files Browse the repository at this point in the history
…ow have full WB customization
  • Loading branch information
yorikvanhavre committed May 23, 2015
1 parent 1099b23 commit bb3be15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
4 changes: 1 addition & 3 deletions src/Mod/Draft/InitGui.py
Expand Up @@ -175,9 +175,7 @@ def ContextMenu(self, recipient):
def GetClassName(self):
return "Gui::PythonWorkbench"

# ability to turn off the Draft workbench (since it is also all included in Arch)
if not FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetBool("hideDraftWorkbench"):
FreeCADGui.addWorkbench(DraftWorkbench)
FreeCADGui.addWorkbench(DraftWorkbench)

# add Import/Export types
App.addImportType("Autodesk DXF (*.dxf)","importDXF")
Expand Down
20 changes: 0 additions & 20 deletions src/Mod/Draft/Resources/ui/preferences-draft.ui
Expand Up @@ -26,26 +26,6 @@
<string>General Draft Settings</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_19">
<item>
<widget class="Gui::PrefCheckBox" name="gui::prefcheckbox_12">
<property name="toolTip">
<string>If this is checked, the Draft workbench won't appear. Useful since all of the Draft tools are also in the Arch workbench.</string>
</property>
<property name="text">
<string>Hide Draft workbench</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>hideDraftWorkbench</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Draft</cstring>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
Expand Down

0 comments on commit bb3be15

Please sign in to comment.