forked from Shinonome/dots-hyprland
fix language selector index binding
This commit is contained in:
@@ -154,13 +154,13 @@ ContentPage {
|
|||||||
};
|
};
|
||||||
})]
|
})]
|
||||||
|
|
||||||
Component.onCompleted: {
|
currentIndex: {
|
||||||
for (let i = 0; i < model.length; i++) {
|
for (let i = 0; i < model.length; i++) {
|
||||||
if (model[i].value === Config.options.language.ui) {
|
if (model[i].value === Config.options.language.ui) {
|
||||||
currentIndex = i;
|
return i;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
onActivated: index => {
|
onActivated: index => {
|
||||||
|
|||||||
Reference in New Issue
Block a user