Skip to content

Commit

Permalink
wxGUI/settings: fix hiding 'Tools' tab for single-window mode (OSGeo#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Jul 19, 2022
1 parent a621250 commit c6e80e6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gui/wxpython/main_window/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,16 @@ def BuildPanes(self):
self._auimgr.GetPane("toolbarNviz").Hide()

# Set Tools as active tab
tools = self._auimgr.GetPane("tools")
notebook = self._auimgr.GetNotebooks()[0]
notebook.SetSelectionToPage(tools)

# Set the size for automatic notebook
pane = self._auimgr.GetPane(notebook)
pane.BestSize(self.PANE_BEST_SIZE)
pane.MinSize(self.PANE_MIN_SIZE)
notebooks = self._auimgr.GetNotebooks()
if notebooks:
notebook = notebooks[0]
tools = self._auimgr.GetPane("tools")
notebook.SetSelectionToPage(tools)

# Set the size for automatic notebook
pane = self._auimgr.GetPane(notebook)
pane.BestSize(self.PANE_BEST_SIZE)
pane.MinSize(self.PANE_MIN_SIZE)

wx.CallAfter(self.datacatalog.LoadItems)

Expand Down

0 comments on commit c6e80e6

Please sign in to comment.