fix PageProtocolCloakSettings
This commit is contained in:
parent
26ba520022
commit
dccfcde6f6
1 changed files with 4 additions and 2 deletions
|
|
@ -48,11 +48,13 @@ PageType {
|
||||||
ListView {
|
ListView {
|
||||||
id: listview
|
id: listview
|
||||||
|
|
||||||
|
property int selectedIndex: 0
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: listview.contentItem.height
|
height: listview.contentItem.height
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
interactive: false
|
reuseItems: true
|
||||||
|
|
||||||
model: CloakConfigModel
|
model: CloakConfigModel
|
||||||
|
|
||||||
|
|
@ -156,7 +158,7 @@ PageType {
|
||||||
|
|
||||||
for (var i = 0; i < cipherListView.model.count; i++) {
|
for (var i = 0; i < cipherListView.model.count; i++) {
|
||||||
if (cipherListView.model.get(i).name === cipherDropDown.text) {
|
if (cipherListView.model.get(i).name === cipherDropDown.text) {
|
||||||
currentIndex = i
|
selectedIndex = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue