Explorar o código

wxGUI/Single-Window: Ensure a display tab is visible when a new display added (#1830)

Linda Kladivova %!s(int64=3) %!d(string=hai) anos
pai
achega
6bae97cab0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      gui/wxpython/main_window/frame.py

+ 1 - 0
gui/wxpython/main_window/frame.py

@@ -390,6 +390,7 @@ class GMFrame(wx.Frame):
         self.notebookLayers.AddPage(page=self.pg_panel, text=name, select=True)
         self.currentPage = self.notebookLayers.GetCurrentPage()
         self.currentPageNum = self.notebookLayers.GetSelection()
+        self.notebookLayers.EnsureVisible(self.currentPageNum)
 
         def CreateNewMapDisplay(layertree):
             """Callback function which creates a new Map Display window