mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
[GraphEditor] Use attribute.values
for the model
Following the modifications that introduce the dynamic choices, we use the list of attributes instead of the description of the attributes.
This commit is contained in:
parent
eaa021dbaa
commit
3f3f2e647d
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,7 @@ RowLayout {
|
|||
id: comboBox_component
|
||||
|
||||
FilterComboBox {
|
||||
inputModel: attribute.desc.values
|
||||
inputModel: attribute.values
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = find(attribute.value)
|
||||
|
@ -362,7 +362,7 @@ RowLayout {
|
|||
// but if only reopen the combo box, keep the current value
|
||||
|
||||
//convert all values of desc values as string
|
||||
var valuesAsString = attribute.desc.values.map(function(value) {
|
||||
var valuesAsString = attribute.values.map(function(value) {
|
||||
return value.toString()
|
||||
})
|
||||
if (valuesAsString.includes(attribute.value) || attribute.value === attribute.desc.value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue