From 6b6ed734f62db6f154b1196aab6b0b8c3e0482d9 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Wed, 28 Jul 2021 14:38:01 +0200 Subject: [PATCH] fix(@desktop/onboarding): erase mnemonic when register with existing key fixes #3089 --- ui/app/AppMain.qml | 9 --------- ui/main.qml | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index de6166ea6e..addca9b841 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -474,15 +474,6 @@ StatusAppLayout { } } - Connections { - target: profileModel - ignoreUnknownSignals: true - enabled: removeMnemonicAfterLogin - onInitialized: { - profileModel.mnemonic.remove() - } - } - Connections { target: profileModel.contacts onContactRequestAdded: { diff --git a/ui/main.qml b/ui/main.qml index 1fae900246..0adf42b1ba 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -390,6 +390,16 @@ StatusWindow { } } + Connections { + target: profileModel + ignoreUnknownSignals: true + enabled: removeMnemonicAfterLogin + onInitialized: { + profileModel.mnemonic.remove() + } + } + + Component { id: genKey GenKey {