Skip to content

Commit

Permalink
wxGUI/lmgr: fix launch map layer menu item '3D view properties' (OSGe…
Browse files Browse the repository at this point in the history
…o#2699)

If 3D view is activated in the single window mode.
  • Loading branch information
tmszi committed Dec 22, 2022
1 parent 7d81bd2 commit 279055b
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 279055b

Please sign in to comment.