Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion meshroom/ui/qml/GraphEditor/NodeStatus.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ FocusScope {
property variant node
property variant currentChunkIndex
property variant currentChunk
property bool isChunkValid: (root.currentChunkIndex >= 0 && root.currentChunk !== undefined)

SystemPalette { id: activePalette }

Expand All @@ -22,7 +23,7 @@ FocusScope {
clip: true
anchors.fill: parent

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

sourceComponent: statViewerComponent
Expand All @@ -34,7 +35,11 @@ FocusScope {
id: statusViewer
property url source: componentLoader.sourceFile
property var lastModified: undefined
property variant chunkStatus: root.isChunkValid ? root.currentChunk.status : undefined

onChunkStatusChanged: {
statusListModel.readSourceFile()
}
onSourceChanged: {
statusListModel.readSourceFile()
}
Expand Down