fixed bug when current cipher was not displaying correctly in dropdown menu

This commit is contained in:
Mitternacht822 2025-06-06 20:28:21 +04:00
parent 369e08844f
commit 49bf5d98ff

View file

@ -140,8 +140,10 @@ PageType {
cipherDropDown.text = cipher
for (var i = 0; i < cipherListView.model.count; i++) {
const element = cipherListView.model.get(i)
if (cipherListView.model.get(i).name === cipherDropDown.text) {
currentIndex = i
cipherListView.selectedIndex = i
}
}
}