Skip to content
Snippets Groups Projects
Commit 949ea3d0 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

When an overlay list button is pushed, the relevant overlay is selected.

parent aa14abde
No related branches found
No related tags found
No related merge requests found
...@@ -92,10 +92,12 @@ class ListItemWidget(wx.Panel): ...@@ -92,10 +92,12 @@ class ListItemWidget(wx.Panel):
def __onSaveButton(self, ev): def __onSaveButton(self, ev):
self.displayCtx.selectOverlay(self.overlay)
self.overlay.save() self.overlay.save()
def __onLockButton(self, ev): def __onLockButton(self, ev):
self.displayCtx.selectOverlay(self.overlay)
group = self.displayCtx.overlayGroups[0] group = self.displayCtx.overlayGroups[0]
if self.lockButton.GetValue(): group.addOverlay( self.overlay) if self.lockButton.GetValue(): group.addOverlay( self.overlay)
...@@ -132,6 +134,7 @@ class ListItemWidget(wx.Panel): ...@@ -132,6 +134,7 @@ class ListItemWidget(wx.Panel):
def __vizChanged(self, *a): def __vizChanged(self, *a):
self.displayCtx.selectOverlay(self.overlay)
idx = self.listBox.IndexOf(self.overlay) idx = self.listBox.IndexOf(self.overlay)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment