diff --git a/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml b/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml index 67ad2f9c1..6b83f9cf9 100644 --- a/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml +++ b/dots/.config/quickshell/ii/modules/settings/GeneralConfig.qml @@ -155,12 +155,8 @@ ContentPage { })] currentIndex: { - for (let i = 0; i < model.length; i++) { - if (model[i].value === Config.options.language.ui) { - return i; - } - } - return 0; + const index = model.findIndex(item => item.value === Config.options.language.ui); + return index !== -1 ? index : 0; } onActivated: index => {