File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
meshroom/ui/qml/GraphEditor Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments