From 1fbf42a3f489c983a5b253a87f6647bd33ff17e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Wed, 19 Feb 2025 15:14:27 +0100 Subject: [PATCH] [GraphEditor] Only display "Pipelines" menu when templates are available In the node menu (displayed when pressing "Tab" or right-clicking in the Graph Editor), the "Pipelines" menu entry used to be displayed even if there was no available template (the entry would open to display an empty list). This commit adds a check to ensure that the "Pipelines" menu is only added to the node menu if there is at least one template that is available. Otherwise, it is not displayed. --- meshroom/ui/qml/GraphEditor/GraphEditor.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/qml/GraphEditor/GraphEditor.qml b/meshroom/ui/qml/GraphEditor/GraphEditor.qml index b9191634..1d9b160e 100755 --- a/meshroom/ui/qml/GraphEditor/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor/GraphEditor.qml @@ -237,7 +237,9 @@ Item { } // Add a "Pipelines" category, filled with the list of templates to create pipelines from the menu - categories["Pipelines"] = MeshroomApp.pipelineTemplateNames + if (MeshroomApp.pipelineTemplateNames.length > 0) { + categories["Pipelines"] = MeshroomApp.pipelineTemplateNames + } return categories }