Skip to content

Commit 2ece1fb

Browse files
committed
[ui] Update node status when modified
1 parent 7d1ebe6 commit 2ece1fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

meshroom/ui/qml/GraphEditor/NodeStatus.qml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ FocusScope {
1414
property variant node
1515
property variant currentChunkIndex
1616
property variant currentChunk
17+
property bool isChunkValid: (root.currentChunkIndex >= 0 && root.currentChunk !== undefined)
1718

1819
SystemPalette { id: activePalette }
1920

@@ -22,7 +23,7 @@ FocusScope {
2223
clip: true
2324
anchors.fill: parent
2425

25-
property string currentFile: (root.currentChunkIndex >= 0 && root.currentChunk !== undefined) ? root.currentChunk["statusFile"] : ""
26+
property string currentFile: root.isChunkValid ? root.currentChunk["statusFile"] : ""
2627
property url sourceFile: Filepath.stringToUrl(currentFile)
2728

2829
sourceComponent: statViewerComponent
@@ -34,7 +35,11 @@ FocusScope {
3435
id: statusViewer
3536
property url source: componentLoader.sourceFile
3637
property var lastModified: undefined
38+
property variant chunkStatus: root.isChunkValid ? root.currentChunk.status : undefined
3739

40+
onChunkStatusChanged: {
41+
statusListModel.readSourceFile()
42+
}
3843
onSourceChanged: {
3944
statusListModel.readSourceFile()
4045
}

0 commit comments

Comments
 (0)