Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI/settings: fix hiding 'Tools' tab for single-window mode #2460

Merged
Merged
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
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