diff options
| author | xiphon <xiphon@protonmail.com> | 2020-04-26 01:21:45 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-04-28 15:05:43 +0000 |
| commit | ce4cb6512df60a9c94892e9edf4a58e20042de2b (patch) | |
| tree | 022431dd5cdf20b32a850e205f1dc9c3f411e106 | |
| parent | 585fb2810dc0d9b79255b9bd479559b36aa087d8 (diff) | |
| download | monzero-gui-ce4cb6512df60a9c94892e9edf4a58e20042de2b.tar.gz monzero-gui-ce4cb6512df60a9c94892e9edf4a58e20042de2b.tar.xz monzero-gui-ce4cb6512df60a9c94892e9edf4a58e20042de2b.zip | |
WizardAskPassword: hide strength if getPasswordStrength is missing
| -rw-r--r-- | wizard/WizardAskPassword.qml | 5 |
1 files 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 { |
