Merge pull request #8 from logos-blockchain/fix/blankScreen

fix: fix the blank screen on startup
This commit is contained in:
Khushboo-dev-cpp 2026-02-27 02:54:38 +05:30 committed by GitHub
commit 4591ea3995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,8 +51,10 @@ Rectangle {
QtObject {
id: d
readonly property bool isWalletOpen: backend && backend.isWalletOpen
onIsWalletOpenChanged: {
if(isWalletOpen) {
onIsWalletOpenChanged: updateStack(isWalletOpen)
function updateStack(walletOpen) {
if(walletOpen) {
stackView.push(mainView)
} else {
stackView.push(onboardingView)
@ -60,6 +62,8 @@ Rectangle {
}
}
Component.onCompleted: d.updateStack(backend && backend.isWalletOpen)
color: Theme.palette.background
StackView {