mirror of
https://github.com/logos-blockchain/logos-execution-zone-wallet-ui.git
synced 2026-03-10 17:13:14 +00:00
fix: fix the blank screen on startup
This commit is contained in:
parent
fb31870b15
commit
9077498cdf
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user