Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gui/wxpython/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ def _defaultSettings(self):
"enabled": False,
"pos": "",
},
# init
"init": {
"startWithoutShellIfPossible": {"enabled": True},
},
},
#
# datacatalog
Expand Down
36 changes: 36 additions & 0 deletions gui/wxpython/gui_core/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,42 @@ def _createGeneralPage(self, notebook):
sizer.Add(gridSizer, proportion=1, flag=wx.ALL | wx.EXPAND, border=5)
border.Add(sizer, proportion=0, flag=wx.ALL | wx.EXPAND, border=3)

#
# init
#
box = StaticBox(
parent=panel, id=wx.ID_ANY, label=" %s " % _("Start-up settings")
)
sizer = wx.StaticBoxSizer(box, wx.VERTICAL)

gridSizer = wx.GridBagSizer(hgap=3, vgap=3)

row = 0
startWithoutShell = wx.CheckBox(
parent=panel,
id=wx.ID_ANY,
label=_(
"Start-up GRASS GIS without Terminal if possible (requires restart)"
),
name="IsChecked",
)
startWithoutShell.SetValue(
self.settings.Get(
group="general",
key="init",
subkey=["startWithoutShellIfPossible", "enabled"],
)
)
self.winId["general:init:startWithoutShellIfPossible:enabled"] = (
startWithoutShell.GetId()
)

gridSizer.Add(startWithoutShell, pos=(row, 0), span=(1, 2))

gridSizer.AddGrowableCol(0)
sizer.Add(gridSizer, proportion=1, flag=wx.ALL | wx.EXPAND, border=5)
border.Add(sizer, proportion=0, flag=wx.ALL | wx.EXPAND, border=3)

panel.SetSizer(border)

return panel
Expand Down
Loading