mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
fix: correctly save password on set or change
This commit is contained in:
@@ -108,7 +108,7 @@ PageType {
|
||||
Layout.rightMargin: 16
|
||||
Layout.bottomMargin: 24
|
||||
|
||||
text: SettingsController.getHint()
|
||||
text: SettingsController.getTempHint()
|
||||
}
|
||||
|
||||
BasicButtonType {
|
||||
@@ -125,6 +125,12 @@ PageType {
|
||||
return
|
||||
}
|
||||
|
||||
SettingsController.setPassword(SettingsController.getTempPassword())
|
||||
SettingsController.setHint(SettingsController.getTempHint())
|
||||
|
||||
SettingsController.setTempPassword("")
|
||||
SettingsController.setTempHint("")
|
||||
|
||||
PageController.closePage()
|
||||
PageController.goToPage(PageEnum.PageSettings)
|
||||
PageController.goToPage(PageEnum.PageSettingsAppEncryption)
|
||||
@@ -138,7 +144,7 @@ PageType {
|
||||
var notMatch = false
|
||||
|
||||
var secretDataItem = listView.itemAtIndex(0).children[0]
|
||||
if (secretDataItem.textField.text !== SettingsController.getPassword()) {
|
||||
if (secretDataItem.textField.text !== SettingsController.getTempPassword()) {
|
||||
secretDataItem.errorText = qsTr("Passwords not match")
|
||||
notMatch = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user