mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
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++) {
|
||||
if (model[i].value === Config.options.language.ui) {
|
||||
currentIndex = i;
|
||||
break;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
onActivated: index => {
|
||||
|
||||
Reference in New Issue
Block a user