Skip to content

Commit

Permalink
[Viewer] Viewer2D: Fix check on image status to display the loading icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Dec 21, 2023
1 parent c87e279 commit 6c723df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshroom/ui/qml/Viewer/Viewer2D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ FocusScope {
if (!imgContainer.image)
return ""
var res = ""
if (imgContainer.image.status === Image.Loading) {
if (imgContainer.image.imageStatus === Image.Loading) {
res += " Image"
}
if (mfeaturesLoader.status === Loader.Ready) {
Expand Down Expand Up @@ -1389,7 +1389,7 @@ FocusScope {
Component.onCompleted: {
running = Qt.binding(function() {
return (root.usePanoramaViewer === true && imgContainer.image && imgContainer.image.allImagesLoaded === false)
|| (imgContainer.image && imgContainer.image.status === Image.Loading)
|| (imgContainer.image && imgContainer.image.imageStatus === Image.Loading)
})
}
// disable the visibility when unused to avoid stealing the mouseEvent to the image color picker
Expand Down

0 comments on commit 6c723df

Please sign in to comment.