[ui] ImageGallery: fix reconstruction status indicator update issues

Bind reconstruction status to 'sfmReport' to ensure it is properly re-evaluated when switching from on SfM node to another.
This commit is contained in:
Yann Lanthony 2019-01-16 18:19:06 +01:00
parent fad2cc3e1c
commit d6649fc365

View file

@ -144,9 +144,9 @@ Panel {
active: parent.inViews
visible: active
sourceComponent: MaterialLabel {
property bool reconstructed: _reconstruction.isReconstructed(model.object)
property bool reconstructed: _reconstruction.sfmReport && _reconstruction.isReconstructed(model.object)
text: reconstructed ? MaterialIcons.check_circle : MaterialIcons.remove_circle
color: reconstructed ? "#4CAF50" : "#F44336"
color: reconstructed ? Colors.green : Colors.red
ToolTip.text: reconstructed ? "Reconstructed" : "Not Reconstructed"
}
}