fix key import
This commit is contained in:
parent
cf5ecf1f1a
commit
d110c96b5c
1 changed files with 14 additions and 1 deletions
|
@ -110,6 +110,7 @@ PageType {
|
|||
|
||||
CheckBoxType {
|
||||
id: cloakingCheckBox
|
||||
objectName: "cloakingCheckBox"
|
||||
|
||||
visible: ImportController.isNativeWireGuardConfig()
|
||||
|
||||
|
@ -192,7 +193,19 @@ PageType {
|
|||
|
||||
text: qsTr("Connect")
|
||||
clickedFunc: function() {
|
||||
if (cloakingCheckBox.checked) {
|
||||
const headerItem = listView.headerItem;
|
||||
if (!headerItem) {
|
||||
console.error("Header item not found in ListView")
|
||||
return
|
||||
}
|
||||
|
||||
const cloakingCheckBoxItem = headerItem.children.find(c => c.objectName === "cloakingCheckBox");
|
||||
if (!cloakingCheckBoxItem) {
|
||||
console.error("cloakingCheckBox not found")
|
||||
return
|
||||
}
|
||||
|
||||
if (cloakingCheckBoxItem.checked) {
|
||||
ImportController.processNativeWireGuardConfig()
|
||||
}
|
||||
ImportController.importConfig()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue