forked from Public/monero-gui
WizardAskPassword: hide strength if getPasswordStrength is missing
This commit is contained in:
@@ -47,7 +47,7 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function calcPasswordStrength(inp) {
|
function calcPasswordStrength(inp) {
|
||||||
if(isAndroid) return;
|
if(!progressLayout.visible) return;
|
||||||
if(passwordInput.text.length <= 1){
|
if(passwordInput.text.length <= 1){
|
||||||
root.passwordFill = 0;
|
root.passwordFill = 0;
|
||||||
progressText.text = passwordStrengthText + qsTr("Low") + translationManager.emptyString;
|
progressText.text = passwordStrengthText + qsTr("Low") + translationManager.emptyString;
|
||||||
@@ -91,8 +91,9 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
id: progressLayout
|
||||||
spacing: 0
|
spacing: 0
|
||||||
visible: !isAndroid
|
visible: !isAndroid && walletManager.getPasswordStrength !== undefined
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
|
|||||||
Reference in New Issue
Block a user