Skip to content

Commit

Permalink
wxGUI/lmgr: fix launch map layer menu item '3D view properties' (#2699)
Browse files Browse the repository at this point in the history
If 3D view is activated in the single window mode.
  • Loading branch information
tmszi committed Dec 22, 2022
1 parent 9efffce commit f77b117
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui/wxpython/lmgr/layertree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,12 @@ def OnNvizProperties(self, event):
.. todo::
vector/volume
"""
self.lmgr.notebook.SetSelectionByName("nviz")
if not UserSettings.Get(
group="general",
key="singleWindow",
subkey="enabled",
):
self.lmgr.notebook.SetSelectionByName("nviz")
ltype = self.GetLayerInfo(self.layer_selected, key="type")
if ltype == "raster":
self.lmgr.nviz.SetPage("surface")
Expand Down

0 comments on commit f77b117

Please sign in to comment.