mirror of
https://github.com/logos-blockchain/logos-execution-zone-wallet-ui.git
synced 2026-02-27 19:53:10 +00:00
Merge pull request #8 from logos-blockchain/fix/blankScreen
fix: fix the blank screen on startup
This commit is contained in:
commit
4591ea3995
@ -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