Skip to content

Commit

Permalink
[ui] NodeStats: disable time if no info
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Jan 22, 2021
1 parent 37d3008 commit 00242f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meshroom/ui/qml/GraphEditor/NodeStatistics.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ FocusScope {
spacing: 2
KeyValue {
key: "Time"
value: Format.sec2time(node.elapsedTime)
property real time: node.elapsedTime
value: time > 0.0 ? Format.sec2time(time) : "-"
}
KeyValue {
key: "Cumulated Time"
value: Format.sec2time(node.recursiveElapsedTime)
property real time: node.recursiveElapsedTime
value: time > 0.0 ? Format.sec2time(time) : "-"
}
}
}
Expand Down

0 comments on commit 00242f8

Please sign in to comment.