Skip to content

Commit

Permalink
wxGUI/lmgr: hide map layer menu item 'Change opacity level' if 3d vie…
Browse files Browse the repository at this point in the history
…w is activated. (#2697)

* wxGUI/lmgr: hide map layer menu item 'Change opacity level'

If 3d view is activated.
  • Loading branch information
tmszi committed Dec 22, 2022
1 parent 4813367 commit b335088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/lmgr/layertree.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def OnLayerContextMenu(self, event):
if ltype not in ("group", "command"):
if numSelected == 1:
self.popupMenu.AppendSeparator()
if ltype != "raster_3d":
if not (ltype == "raster_3d" or self.mapdisplay.IsPaneShown("3d")):
item = wx.MenuItem(
self.popupMenu,
id=self.popupID["opacity"],
Expand Down

0 comments on commit b335088

Please sign in to comment.