fix(@desktop/onboarding): backup seed phrase flow is shown for recovered account
fixes #3954
This commit is contained in:
parent
1f636e1198
commit
0c1dc30e5a
|
@ -40,8 +40,7 @@ Column {
|
|||
selected: Config.currentMenuTab === model.menu_id
|
||||
onClicked: root.menuItemClicked(model)
|
||||
visible: model.ifEnabled !== "browser" || root.browserMenuItemEnabled
|
||||
badge.value: (!mnemonicModule.isBackedUp && (settingsMenuDelegate.title ===
|
||||
settingsMenuItems.itemAt(0).text)) ? 1 : 0
|
||||
badge.value: !mnemonicModule.isBackedUp && settingsMenuDelegate.title === qsTr("Privacy and security")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ Item {
|
|||
implicitHeight: 52
|
||||
components: [
|
||||
StatusBadge {
|
||||
value: !root.store.mnemonicBackedUp
|
||||
visible: !root.store.mnemonicBackedUp
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
},
|
||||
|
|
|
@ -344,7 +344,7 @@ Item {
|
|||
checked: appView.currentIndex == Utils.getAppSectionIndex(Constants.profile)
|
||||
onClicked: appMain.changeAppSection(Constants.profile)
|
||||
|
||||
badge.visible: !profileModel.mnemonic.isBackedUp
|
||||
badge.visible: !mnemonicModule.isBackedUp
|
||||
badge.anchors.rightMargin: 4
|
||||
badge.anchors.topMargin: 5
|
||||
badge.border.color: hovered ? Theme.palette.statusBadge.hoverBorderColor : Theme.palette.statusAppNavBar.backgroundColor
|
||||
|
@ -593,15 +593,6 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: profileModel
|
||||
ignoreUnknownSignals: true
|
||||
enabled: removeMnemonicAfterLogin
|
||||
onInitialized: {
|
||||
mnemonicModule.remove()
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: profileModel.contacts
|
||||
onContactRequestAdded: {
|
||||
|
|
|
@ -131,6 +131,15 @@ StatusWindow {
|
|||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: profileModel
|
||||
ignoreUnknownSignals: true
|
||||
enabled: removeMnemonicAfterLogin
|
||||
onInitialized: {
|
||||
mnemonicModule.remove()
|
||||
}
|
||||
}
|
||||
|
||||
// The easiest way to get current system theme (is it light or dark) without using
|
||||
// OS native methods is to check lightness (0 - 1.0) of the window color.
|
||||
// If it's too high (0.85+) means light theme is an active.
|
||||
|
|
Loading…
Reference in New Issue