mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-22 13:36:31 +02:00
[ui] Graph: stop and cancel node computation
This commit is contained in:
parent
b71832ebbd
commit
f41565f26b
2 changed files with 45 additions and 0 deletions
|
@ -289,6 +289,20 @@ Item {
|
|||
height: visible ? implicitHeight : 0
|
||||
onTriggered: submitRequest(nodeMenu.currentNode)
|
||||
}
|
||||
MenuItem {
|
||||
text: "Stop Computation"
|
||||
enabled: nodeMenu.currentNode ? nodeMenu.currentNode.globalStatus === "RUNNING" && nodeMenu.currentNode.globalExecMode === "LOCAL" : false
|
||||
visible: enabled
|
||||
height: visible ? implicitHeight : 0
|
||||
onTriggered: uigraph.stopNodeComputation(nodeMenu.currentNode)
|
||||
}
|
||||
MenuItem {
|
||||
text: "Cancel Computation"
|
||||
enabled: nodeMenu.currentNode ? nodeMenu.currentNode.globalStatus === "SUBMITTED" && nodeMenu.currentNode.globalExecMode === "LOCAL" : false
|
||||
visible: enabled
|
||||
height: visible ? implicitHeight : 0
|
||||
onTriggered: uigraph.cancelNodeComputation(nodeMenu.currentNode)
|
||||
}
|
||||
MenuItem {
|
||||
text: "Open Folder"
|
||||
onTriggered: Qt.openUrlExternally(Filepath.stringToUrl(nodeMenu.currentNode.internalFolder))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue