Skip to content

Commit

Permalink
Hide geom edit by default
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Aug 24, 2015
1 parent ab56fcb commit 48855a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/roam/api/featureform.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import roam.defaults as defaults
import roam.roam_style
import roam.utils
import roam.config

from roam.ui.ui_geomwidget import Ui_GeomWidget

Expand Down Expand Up @@ -115,9 +116,10 @@ def buildfromauto(formconfig, base):
outlayout.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)
outwidget = base
outwidget.setLayout(outlayout)
geomwidget = GeomWidget()
geomwidget.setObjectName("__geomwidget")
outlayout.addRow("Geometry", geomwidget)
if roam.config.settings.get("form_geom_edit", False):
geomwidget = GeomWidget()
geomwidget.setObjectName("__geomwidget")
outlayout.addRow("Geometry", geomwidget)
for config in widgetsconfig:
widgettype = config['widget']
field = config['field']
Expand Down

0 comments on commit 48855a3

Please sign in to comment.