mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
qml ui fixes
This commit is contained in:
@@ -19,7 +19,7 @@ PageProtocolBase {
|
||||
y: 40
|
||||
width: 380
|
||||
height: 600
|
||||
enabled: logic.widgetProtoCloakEnabled
|
||||
enabled: logic.pageEnabled
|
||||
ComboBoxType {
|
||||
x: 190
|
||||
y: 60
|
||||
|
||||
@@ -18,7 +18,7 @@ PageProtocolBase {
|
||||
y: 40
|
||||
width: 380
|
||||
height: 600
|
||||
enabled: logic.widgetProtoOpenVpnEnabled
|
||||
enabled: logic.pageEnabled
|
||||
CheckBoxType {
|
||||
x: 30
|
||||
y: 280
|
||||
|
||||
@@ -19,28 +19,32 @@ PageProtocolBase {
|
||||
y: 40
|
||||
width: 380
|
||||
height: 600
|
||||
enabled: logic.widgetProtoShadowSocksEnabled
|
||||
enabled: logic.pageEnabled
|
||||
ComboBoxType {
|
||||
x: 190
|
||||
y: 60
|
||||
width: 151
|
||||
height: 31
|
||||
model: [
|
||||
qsTr("chacha20-poly1305"),
|
||||
model: [
|
||||
qsTr("chacha20-ietf-poly1305"),
|
||||
qsTr("xchacha20-ietf-poly1305"),
|
||||
qsTr("aes-256-gcm"),
|
||||
qsTr("aes-192-gcm"),
|
||||
qsTr("aes-128-gcm")
|
||||
]
|
||||
currentIndex: {
|
||||
console.debug("logic.comboBoxProtoShadowSocksCipherText " + logic.comboBoxProtoShadowSocksCipherText)
|
||||
for (let i = 0; i < model.length; ++i) {
|
||||
console.debug("check " + model[i])
|
||||
if (logic.comboBoxProtoShadowSocksCipherText === model[i]) {
|
||||
return i
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
onCurrentTextChanged: {
|
||||
logic.comboBoxProtoShadowSocksCipherText = currentText
|
||||
}
|
||||
// onCurrentTextChanged: {
|
||||
// logic.comboBoxProtoShadowSocksCipherText = currentText
|
||||
// }
|
||||
}
|
||||
LabelType {
|
||||
x: 30
|
||||
|
||||
@@ -8,6 +8,6 @@ import "../../Config"
|
||||
|
||||
PageBase {
|
||||
id: root
|
||||
property int protocol: ProtocolEnum.Any
|
||||
property var protocol: ProtocolEnum.Any
|
||||
page: PageEnum.ProtocolSettings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user