status-desktop/ui/app/AppLayouts/Onboarding/views/GenKeyView.qml

38 lines
774 B
QML

import QtQuick 2.13
import "../popups"
import "../stores"
import "../shared"
Item {
property var onClosed: function () {}
id: genKeyView
anchors.fill: parent
Component.onCompleted: {
genKeyModal.open()
}
GenKeyModal {
property bool wentNext: false
id: genKeyModal
onNextClick: function (selectedIndex) {
wentNext = true
OnboardingStore.setCurrentAccount(selectedIndex)
createPasswordModal.open()
}
onClosed: function () {
if (!wentNext) {
genKeyView.onClosed()
}
}
}
CreatePasswordModal {
id: createPasswordModal
onClosed: function () {
genKeyView.onClosed()
}
}
}