fixed additional info can not be save in page OpenVpn settings
This commit is contained in:
parent
c0aca97083
commit
9eebee3ce3
2 changed files with 16 additions and 15 deletions
|
@ -6,7 +6,8 @@ Rectangle {
|
||||||
|
|
||||||
property string placeholderText
|
property string placeholderText
|
||||||
property string text
|
property string text
|
||||||
property var onEditingFinished
|
property alias textArea: textArea
|
||||||
|
property alias textAreaText: textArea.text
|
||||||
|
|
||||||
height: 148
|
height: 148
|
||||||
color: "#1C1D21"
|
color: "#1C1D21"
|
||||||
|
@ -40,12 +41,6 @@ Rectangle {
|
||||||
placeholderText: root.placeholderText
|
placeholderText: root.placeholderText
|
||||||
text: root.text
|
text: root.text
|
||||||
|
|
||||||
onEditingFinished: {
|
|
||||||
if (root.onEditingFinished && typeof root.onEditingFinished === "function") {
|
|
||||||
root.onEditingFinished()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -312,12 +312,12 @@ PageType {
|
||||||
|
|
||||||
visible: additionalClientCommandsSwitcher.checked
|
visible: additionalClientCommandsSwitcher.checked
|
||||||
|
|
||||||
text: additionalClientCommands
|
textAreaText: additionalClientCommands
|
||||||
placeholderText: qsTr("Commands:")
|
placeholderText: qsTr("Commands:")
|
||||||
|
|
||||||
onEditingFinished: {
|
textArea.onEditingFinished: {
|
||||||
if (additionalClientCommands !== text) {
|
if (additionalClientCommands !== textAreaText) {
|
||||||
additionalClientCommands = text
|
additionalClientCommands = textAreaText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -330,6 +330,12 @@ PageType {
|
||||||
checked: additionalServerCommands !== ""
|
checked: additionalServerCommands !== ""
|
||||||
|
|
||||||
text: qsTr("Additional server configuration commands")
|
text: qsTr("Additional server configuration commands")
|
||||||
|
|
||||||
|
onCheckedChanged: {
|
||||||
|
if (!checked) {
|
||||||
|
additionalServerCommands = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TextAreaType {
|
TextAreaType {
|
||||||
|
@ -338,12 +344,12 @@ PageType {
|
||||||
|
|
||||||
visible: additionalServerCommandsSwitcher.checked
|
visible: additionalServerCommandsSwitcher.checked
|
||||||
|
|
||||||
text: additionalServerCommands
|
textAreaText: additionalServerCommands
|
||||||
placeholderText: qsTr("Commands:")
|
placeholderText: qsTr("Commands:")
|
||||||
|
|
||||||
onEditingFinished: {
|
textArea.onEditingFinished: {
|
||||||
if (additionalServerCommands !== text) {
|
if (additionalServerCommands !== textAreaText) {
|
||||||
additionalServerCommands = text
|
additionalServerCommands = textAreaText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue