From 1a394955cf43b7bd57ec412a54af9d2813d8f84f Mon Sep 17 00:00:00 2001 From: mx Date: Sun, 29 Nov 2026 14:53:10 +0100 Subject: [PATCH] Skip choice lists on non-choice cog rows Co-Authored-By: Claude Opus 5.5 --- quickshell/settings/controls/BarEditor.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickshell/settings/controls/BarEditor.qml b/quickshell/settings/controls/BarEditor.qml index 493fab7..61e0050 100644 --- a/quickshell/settings/controls/BarEditor.qml +++ b/quickshell/settings/controls/BarEditor.qml @@ -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 {