From a77ec86561b1182efdeb02ae6878c98d9ef36847 Mon Sep 17 00:00:00 2001 From: Ronald Pandolfi Date: Tue, 7 Nov 2023 15:02:23 -0800 Subject: [PATCH] more convenient node selection for main menu --- xicam/gui/windows/mainwindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xicam/gui/windows/mainwindow.py b/xicam/gui/windows/mainwindow.py index 18062152..65cd921c 100644 --- a/xicam/gui/windows/mainwindow.py +++ b/xicam/gui/windows/mainwindow.py @@ -375,6 +375,8 @@ def showNode(self, node=None, direction=None): nodes = node.children if len(nodes) > 1: self._showNodes(nodes, direction) + if not isinstance(nodes[0].object, dict): + self.showNode(nodes[0]) elif isinstance(node.object, (PluginType,)): nodes = node.children