fix: fix appSetting not defined by removing sounds from login

This commit is contained in:
Jonathan Rainville 2021-03-17 13:00:11 -04:00 committed by Iuri Matias
parent 053c7fdcf3
commit d0f141c1b8
5 changed files with 5 additions and 10 deletions

View File

@ -126,6 +126,10 @@ RowLayout {
property bool compatibilityMode: true
}
ErrorSound {
id: errorSound
}
Audio {
id: sendMessageSound
audioRole: Audio.NotificationRole

View File

@ -38,10 +38,6 @@ ApplicationWindow {
}
visible: true
ErrorSound {
id: errorSound
}
Action {
shortcut: StandardKey.FullScreen
onTriggered: {

View File

@ -137,7 +137,6 @@ ModalPopup {
ignoreUnknownSignals: true
onLoginResponseChanged: {
if (error) {
errorSound.play()
loading = false
importLoginError.open()
}
@ -151,7 +150,6 @@ ModalPopup {
const result = onboardingModel.storeDerivedAndLogin(repeatPasswordField.text);
const error = JSON.parse(result).error
if (error) {
errorSound.play()
importError.text += error
return importError.open()
}

View File

@ -24,9 +24,7 @@ Item {
error = onboardingModel.validateMnemonic(mnemonic)
}
if (error != "") {
errorSound.play()
} else {
if (error === "") {
wentNext = true
enterSeedPhraseModal.close()
onboardingModel.importMnemonic(mnemonic)

View File

@ -167,7 +167,6 @@ Item {
ignoreUnknownSignals: true
onLoginResponseChanged: {
if (error) {
errorSound.play()
errMsg.visible = true;
loading = false;