fix(@wallet): open sign modal only when ready

fixes #13071
This commit is contained in:
Anthony Laibe 2024-01-02 11:24:22 +01:00
parent 73025c5a0a
commit 1c91d37d69
2 changed files with 12 additions and 3 deletions

View File

@ -24,8 +24,13 @@ Item {
property var emojiPopup: null
property var sendModalPopup
property var networkConnectionStore
property bool appMainVisible
onVisibleChanged: resetView()
onAppMainVisibleChanged: showSigningPhrasePopup()
onVisibleChanged: {
resetView()
}
Connections {
target: walletSection
@ -44,7 +49,7 @@ Item {
}
function showSigningPhrasePopup(){
if(!hideSignPhraseModal && !RootStore.hideSignPhraseModal){
if(!hideSignPhraseModal && !RootStore.hideSignPhraseModal && visible && appMainVisible){
signPhrasePopup.open();
}
}

View File

@ -67,6 +67,7 @@ Item {
property CommunityTokensStore communityTokensStore: CommunityTokensStore {}
property CommunitiesStore communitiesStore: CommunitiesStore {}
readonly property WalletStore.TokensStore tokensStore: WalletStore.RootStore.tokensStore
// set from main.qml
property var sysPalette
@ -1229,8 +1230,11 @@ Item {
emojiPopup: statusEmojiPopup.item
sendModalPopup: sendModal
networkConnectionStore: appMain.networkConnectionStore
appMainVisible: appMain.visible
}
onLoaded: {
item.showSigningPhrasePopup()
}
onLoaded: item.showSigningPhrasePopup()
}
Loader {