mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[ui] Fix unsaved graph and compute only a part
This commit is contained in:
parent
26ecf3ce92
commit
f166f81cb1
1 changed files with 3 additions and 3 deletions
|
@ -219,7 +219,7 @@ ApplicationWindow {
|
|||
function compute(nodes, force) {
|
||||
if (!force && warnIfUnsaved && !_reconstruction.graph.filepath)
|
||||
{
|
||||
unsavedComputeDialog.currentNode = nodes[0];
|
||||
unsavedComputeDialog.selectedNodes = nodes;
|
||||
unsavedComputeDialog.open();
|
||||
}
|
||||
else {
|
||||
|
@ -323,7 +323,7 @@ ApplicationWindow {
|
|||
MessageDialog {
|
||||
id: unsavedComputeDialog
|
||||
|
||||
property var currentNode: null
|
||||
property var selectedNodes: null
|
||||
|
||||
canCopy: false
|
||||
icon.text: MaterialIcons.warning
|
||||
|
@ -349,7 +349,7 @@ ApplicationWindow {
|
|||
|
||||
onDiscarded: {
|
||||
close()
|
||||
computeManager.compute(currentNode, true)
|
||||
computeManager.compute(selectedNodes, true)
|
||||
}
|
||||
|
||||
onAccepted: saveAsAction.trigger()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue