Skip choice lists on non-choice cog rows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
629287f7f3
commit
1a394955cf
1 file changed
+2
-2
@@ -215,10 +215,10 @@ Item {
|
||||
visible:optionRow.modelData.type==="choice"
|
||||
Layout.preferredWidth:110
|
||||
implicitHeight:30
|
||||
model:optionRow.modelData.choices.map((c,i)=>({text:optionRow.modelData.choiceLabels ? optionRow.modelData.choiceLabels[i] : String(c).charAt(0).toUpperCase()+String(c).slice(1),value:c}))
|
||||
model:(optionRow.modelData.choices || []).map((c,i)=>({text:optionRow.modelData.choiceLabels ? optionRow.modelData.choiceLabels[i] : String(c).charAt(0).toUpperCase()+String(c).slice(1),value:c}))
|
||||
textRole:"text"
|
||||
valueRole:"value"
|
||||
currentIndex:optionRow.modelData.choices.indexOf(optionRow.value)
|
||||
currentIndex:(optionRow.modelData.choices || []).indexOf(optionRow.value)
|
||||
onActivated:root.setOption(card.modelData,optionRow.modelData.key,currentValue)
|
||||
}
|
||||
GlassToggle {
|
||||
|
||||
Reference in new issue
Block a user