fix(onboarding): fix black screen when closing re-encrypt modal
Fixes #2657
This commit is contained in:
parent
0368c0beaa
commit
b99300bf10
|
@ -22,6 +22,7 @@ StatusWindow {
|
|||
property bool removeMnemonicAfterLogin: false
|
||||
property alias dragAndDrop: dragTarget
|
||||
property bool popupOpened: false
|
||||
property bool displayBeforeGetStartedModal: !hasAccounts
|
||||
|
||||
Universal.theme: Universal.System
|
||||
|
||||
|
@ -348,7 +349,6 @@ StatusWindow {
|
|||
Component {
|
||||
id: keysMain
|
||||
KeysMain {
|
||||
displayBeforeGetStartedModal: !hasAccounts
|
||||
btnGenKey.onClicked: applicationWindow.navigateTo("GenKey")
|
||||
btnExistingKey.onClicked: applicationWindow.navigateTo("ExistingKey")
|
||||
}
|
||||
|
|
|
@ -29,13 +29,15 @@ Item {
|
|||
}
|
||||
|
||||
MnemonicRecoverySuccessModal {
|
||||
property bool wentNext: false
|
||||
id: recoverySuccessModal
|
||||
onButtonClicked: {
|
||||
recoverySuccessModal.wentNext = true
|
||||
recoverySuccessModal.close()
|
||||
createPasswordModal.open()
|
||||
}
|
||||
onClosed: function () {
|
||||
if (!enterSeedPhraseModal.wentNext) {
|
||||
if (!recoverySuccessModal.wentNext) {
|
||||
existingKeyView.onClosed()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,15 +9,16 @@ Page {
|
|||
id: page
|
||||
property alias btnExistingKey: btnExistingKey
|
||||
property alias btnGenKey: btnGenKey
|
||||
property bool displayBeforeGetStartedModal: true
|
||||
|
||||
background: Rectangle {
|
||||
color: Style.current.background
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if(displayBeforeGetStartedModal)
|
||||
if(displayBeforeGetStartedModal) {
|
||||
displayBeforeGetStartedModal = false
|
||||
beforeGetStartedModal.open()
|
||||
}
|
||||
}
|
||||
|
||||
BeforeGetStartedModal {
|
||||
|
|
Loading…
Reference in New Issue