From ff86a5182e7e3f816f77cff978ef6334d5a048cc Mon Sep 17 00:00:00 2001 From: Aurore LAFAURIE Date: Tue, 20 Aug 2024 14:38:01 +0200 Subject: [PATCH] [GraphEditor] Close edge popup when action is triggered --- meshroom/ui/qml/GraphEditor/GraphEditor.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/qml/GraphEditor/GraphEditor.qml b/meshroom/ui/qml/GraphEditor/GraphEditor.qml index b4a23c20..5b929385 100755 --- a/meshroom/ui/qml/GraphEditor/GraphEditor.qml +++ b/meshroom/ui/qml/GraphEditor/GraphEditor.qml @@ -445,7 +445,10 @@ Item { ToolTip.text: "Remove edge" enabled: edgeMenu.currentEdge && !edgeMenu.currentEdge.dst.node.locked && !edgeMenu.currentEdge.dst.isReadOnly text: MaterialIcons.delete_ - onClicked: uigraph.removeEdge(edgeMenu.currentEdge) + onClicked: { + uigraph.removeEdge(edgeMenu.currentEdge) + edgeMenu.close() + } } MaterialToolButton { @@ -462,6 +465,7 @@ Item { onClicked: { uigraph.expandForLoop(edgeMenu.currentEdge) canExpand = false + edgeMenu.close() } } @@ -477,6 +481,7 @@ Item { onClicked: { uigraph.collapseForLoop(edgeMenu.currentEdge) expandButton.canExpand = true + edgeMenu.close() } } }