mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-30 06:48:47 +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)
|
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
|
//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 int canSubmitOrCompute: currentNode != null && uigraph.graph.canSubmitOrCompute(currentNode)
|
||||||
property bool isComputed: {
|
property bool isComputed: {
|
||||||
for (var i = 0; i < uigraph.selectedNodes.count; ++i) {
|
for (var i = 0; i < uigraph.selectedNodes.count; ++i) {
|
||||||
if (!uigraph.selectedNodes.at(i).isComputed)
|
if (!uigraph.selectedNodes.at(i).isComputed)
|
||||||
return false
|
return false
|
||||||
}
|
|
||||||
return uigraph.selectedNodes.count > 0
|
|
||||||
}
|
}
|
||||||
|
return uigraph.selectedNodes.count > 0
|
||||||
|
}
|
||||||
width: 220
|
width: 220
|
||||||
onClosed: currentNode = null
|
onClosed: currentNode = null
|
||||||
|
|
||||||
|
@ -673,8 +673,8 @@ Item {
|
||||||
modal: false
|
modal: false
|
||||||
header.visible: false
|
header.visible: false
|
||||||
|
|
||||||
text: "Delete Data of '" + node.label + (deleteFollowing ? "' and following Nodes?" : "'?")
|
text: "Delete Data of '" + node.label + "'" + (uigraph.selectedNodes.count > 1 ? " and other selected Nodes" : "") + (deleteFollowing ? " and following Nodes?" : "?")
|
||||||
helperText: "Warning: This operation can not be undone."
|
helperText: "Warning: This operation cannot be undone."
|
||||||
standardButtons: Dialog.Yes | Dialog.Cancel
|
standardButtons: Dialog.Yes | Dialog.Cancel
|
||||||
|
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue