fix(@desktop/onboarding): erase mnemonic when register with existing key

fixes #3089
This commit is contained in:
Anthony Laibe 2021-07-28 14:38:01 +02:00 committed by Iuri Matias
parent d47ddf69bb
commit 6b6ed734f6
2 changed files with 10 additions and 9 deletions

View File

@ -474,15 +474,6 @@ StatusAppLayout {
}
}
Connections {
target: profileModel
ignoreUnknownSignals: true
enabled: removeMnemonicAfterLogin
onInitialized: {
profileModel.mnemonic.remove()
}
}
Connections {
target: profileModel.contacts
onContactRequestAdded: {

View File

@ -390,6 +390,16 @@ StatusWindow {
}
}
Connections {
target: profileModel
ignoreUnknownSignals: true
enabled: removeMnemonicAfterLogin
onInitialized: {
profileModel.mnemonic.remove()
}
}
Component {
id: genKey
GenKey {