From ce4cb6512df60a9c94892e9edf4a58e20042de2b Mon Sep 17 00:00:00 2001 From: xiphon Date: Sun, 26 Apr 2020 01:21:45 +0000 Subject: [PATCH] WizardAskPassword: hide strength if getPasswordStrength is missing --- wizard/WizardAskPassword.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wizard/WizardAskPassword.qml b/wizard/WizardAskPassword.qml index 6aac90ed..ae4ef308 100644 --- a/wizard/WizardAskPassword.qml +++ b/wizard/WizardAskPassword.qml @@ -47,7 +47,7 @@ ColumnLayout { } function calcPasswordStrength(inp) { - if(isAndroid) return; + if(!progressLayout.visible) return; if(passwordInput.text.length <= 1){ root.passwordFill = 0; progressText.text = passwordStrengthText + qsTr("Low") + translationManager.emptyString; @@ -91,8 +91,9 @@ ColumnLayout { } ColumnLayout { + id: progressLayout spacing: 0 - visible: !isAndroid + visible: !isAndroid && walletManager.getPasswordStrength !== undefined Layout.fillWidth: true TextInput {