update: added encryption indicator on backup, share and api configs pages

This commit is contained in:
MrMirDan
2025-12-19 12:58:16 +02:00
parent d0bd28defb
commit 6426516365
4 changed files with 36 additions and 0 deletions
@@ -60,6 +60,15 @@ PageType {
headerText: qsTr("Configuration Files")
descriptionText: qsTr("For router setup or the AmneziaWG app")
}
EncryptionIndicator {
id: indicator
visible: SettingsController.isFileEncryptionEnabled()
textString: qsTr("Encryption enabled. Learn more")
iconPath: "qrc:/images/controls/lock-locked.svg"
}
}
delegate: ColumnLayout {
@@ -67,6 +67,15 @@ PageType {
headerText: qsTr("Back up your configuration")
descriptionText: qsTr("You can save your settings to a backup file to restore them the next time you install the application.")
}
EncryptionIndicator {
id: indicator
visible: SettingsController.isFileEncryptionEnabled()
textString: qsTr("Encryption enabled. Learn more")
iconPath: "qrc:/images/controls/lock-locked.svg"
}
}
model: 1 // fake model to force the ListView to be created without a model
+9
View File
@@ -271,6 +271,15 @@ PageType {
color: AmneziaStyle.color.mutedGray
}
EncryptionIndicator {
id: indicator
visible: SettingsController.isFileEncryptionEnabled()
textString: qsTr("Encryption enabled. Learn more")
iconPath: "qrc:/images/controls/lock-locked.svg"
}
TextFieldWithHeaderType {
id: clientNameTextField
Layout.fillWidth: true
@@ -69,6 +69,15 @@ PageType {
color: AmneziaStyle.color.mutedGray
}
EncryptionIndicator {
id: indicator
visible: SettingsController.isFileEncryptionEnabled()
textString: qsTr("Encryption enabled. Learn more")
iconPath: "qrc:/images/controls/lock-locked.svg"
}
DropDownType {
id: serverSelector
objectName: "serverSelector"