mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 01:46:31 +02:00
[ui] Update Delete data label according to selected nodes
This commit is contained in:
parent
82dd2a1f31
commit
16e951bad8
1 changed files with 8 additions and 8 deletions
|
@ -456,13 +456,13 @@ Item {
|
|||
property bool canComputeNode: currentNode != null && uigraph.graph.canCompute(currentNode)
|
||||
//canSubmitOrCompute: return int n : 0 >= n <= 3 | n=0 cannot submit or compute | n=1 can compute | n=2 can submit | n=3 can compute & submit
|
||||
property int canSubmitOrCompute: currentNode != null && uigraph.graph.canSubmitOrCompute(currentNode)
|
||||
property bool isComputed: {
|
||||
for (var i = 0; i < uigraph.selectedNodes.count; ++i) {
|
||||
if (!uigraph.selectedNodes.at(i).isComputed)
|
||||
return false
|
||||
}
|
||||
return uigraph.selectedNodes.count > 0
|
||||
property bool isComputed: {
|
||||
for (var i = 0; i < uigraph.selectedNodes.count; ++i) {
|
||||
if (!uigraph.selectedNodes.at(i).isComputed)
|
||||
return false
|
||||
}
|
||||
return uigraph.selectedNodes.count > 0
|
||||
}
|
||||
width: 220
|
||||
onClosed: currentNode = null
|
||||
|
||||
|
@ -673,8 +673,8 @@ Item {
|
|||
modal: false
|
||||
header.visible: false
|
||||
|
||||
text: "Delete Data of '" + node.label + (deleteFollowing ? "' and following Nodes?" : "'?")
|
||||
helperText: "Warning: This operation can not be undone."
|
||||
text: "Delete Data of '" + node.label + "'" + (uigraph.selectedNodes.count > 1 ? " and other selected Nodes" : "") + (deleteFollowing ? " and following Nodes?" : "?")
|
||||
helperText: "Warning: This operation cannot be undone."
|
||||
standardButtons: Dialog.Yes | Dialog.Cancel
|
||||
|
||||
onAccepted: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue