Skip to content

Commit

Permalink
wxGUI g.gui.vdigit: fix update available vector maps after the frame …
Browse files Browse the repository at this point in the history
…is show (#465)
  • Loading branch information
tmszi committed Mar 31, 2020
1 parent 031e21d commit bcab740
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/wxpython/vdigit/toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def __init__(self, parent, toolSwitcher, MapWindow, digitClass, giface,
self.editingStopped.connect(layerTree.StopEditing)
self.editingBgMap.connect(layerTree.SetBgMapForEditing)

# bind events
self.Bind(wx.EVT_SHOW, self.OnShow)

# currently selected map layer for editing (reference to MapLayer
# instance)
self.mapLayer = None
Expand Down Expand Up @@ -1116,3 +1119,8 @@ def UpdateListOfLayers(self, updateTool=False):
def GetLayer(self):
"""Get selected layer for editing -- MapLayer instance"""
return self.mapLayer

def OnShow(self, event):
"""Show frame event"""
# list of available vector maps
self.UpdateListOfLayers(updateTool=True)

0 comments on commit bcab740

Please sign in to comment.