Permalink
Browse files

Fixed an issue with Browse section

Problem when you selected a node in Browse section > selected spawnlist
> selected the exact same node in Browse section and it won't show up
the node props.
  • Loading branch information...
1 parent f61d10a commit 7c9d931425393a37b7474dac74ba56bf1c8c43fb @robotboy655 robotboy655 committed Jun 29, 2016
@@ -14,7 +14,10 @@ local function AddBrowseContent( ViewPanel, node, name, icon, path, pathid, pnlC
models.OnNodeSelected = function( slf, node )
-- Already viewing this panel
- if ( ViewPanel && ViewPanel.CurrentNode && ViewPanel.CurrentNode == node ) then return end
+ if ( ViewPanel && ViewPanel.CurrentNode && ViewPanel.CurrentNode == node ) then
+ if ( pnlContent.SelectedPanel != ViewPanel ) then pnlContent:SwitchPanel( ViewPanel ) end
+ return
+ end
-- Clear the viewpanel in preperation for displaying it
ViewPanel:Clear( true )

0 comments on commit 7c9d931

Please sign in to comment.