Skip to content

Commit

Permalink
[GraphEditor] Close edge popup when action is triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-Kiel committed Aug 20, 2024
1 parent 4f3b051 commit 0a3d9b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion meshroom/ui/qml/GraphEditor/GraphEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,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 {
Expand All @@ -461,6 +464,7 @@ Item {
onClicked: {
uigraph.expandForLoop(edgeMenu.currentEdge)
canExpand = false
edgeMenu.close()
}
}

Expand All @@ -476,6 +480,7 @@ Item {
onClicked: {
uigraph.collapseForLoop(edgeMenu.currentEdge)
expandButton.canExpand = true
edgeMenu.close()
}
}
}
Expand Down

0 comments on commit 0a3d9b2

Please sign in to comment.