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
|
selected: Config.currentMenuTab === model.menu_id
|
||||||
onClicked: root.menuItemClicked(model)
|
onClicked: root.menuItemClicked(model)
|
||||||
visible: model.ifEnabled !== "browser" || root.browserMenuItemEnabled
|
visible: model.ifEnabled !== "browser" || root.browserMenuItemEnabled
|
||||||
badge.value: (!mnemonicModule.isBackedUp && (settingsMenuDelegate.title ===
|
badge.value: !mnemonicModule.isBackedUp && settingsMenuDelegate.title === qsTr("Privacy and security")
|
||||||
settingsMenuItems.itemAt(0).text)) ? 1 : 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ Item {
|
||||||
implicitHeight: 52
|
implicitHeight: 52
|
||||||
components: [
|
components: [
|
||||||
StatusBadge {
|
StatusBadge {
|
||||||
|
value: !root.store.mnemonicBackedUp
|
||||||
visible: !root.store.mnemonicBackedUp
|
visible: !root.store.mnemonicBackedUp
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
},
|
},
|
||||||
|
|
|
@ -344,7 +344,7 @@ Item {
|
||||||
checked: appView.currentIndex == Utils.getAppSectionIndex(Constants.profile)
|
checked: appView.currentIndex == Utils.getAppSectionIndex(Constants.profile)
|
||||||
onClicked: appMain.changeAppSection(Constants.profile)
|
onClicked: appMain.changeAppSection(Constants.profile)
|
||||||
|
|
||||||
badge.visible: !profileModel.mnemonic.isBackedUp
|
badge.visible: !mnemonicModule.isBackedUp
|
||||||
badge.anchors.rightMargin: 4
|
badge.anchors.rightMargin: 4
|
||||||
badge.anchors.topMargin: 5
|
badge.anchors.topMargin: 5
|
||||||
badge.border.color: hovered ? Theme.palette.statusBadge.hoverBorderColor : Theme.palette.statusAppNavBar.backgroundColor
|
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 {
|
Connections {
|
||||||
target: profileModel.contacts
|
target: profileModel.contacts
|
||||||
onContactRequestAdded: {
|
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
|
// 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.
|
// 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.
|
// If it's too high (0.85+) means light theme is an active.
|
||||||
|
|
Loading…
Reference in New Issue