[ui] Viewer2D: if imageType is disabled switch back to "image" type

This commit is contained in:
Fabien Castan 2020-03-04 19:02:40 +01:00
parent 540c0d1744
commit eae0f4b1f4

View file

@ -370,7 +370,7 @@ FocusScope {
flat: true
property var types: ["image", "depth", "sim"]
property string type: types[currentIndex]
property string type: enabled ? types[currentIndex] : types[0]
model: types
enabled: _reconstruction.depthMap != undefined