mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
fix(Communities): move backup community popup logic to onClosed handler
The transfer ownership popup triggered by the backup community baner button was behaving weirdly because the banner from where it originates lives inside a loader that is deactivated once the popup was opened. Moving the logic that deactivates the loader into the onClosed handler of the popup solves this issue. Thanks to @pinebit for getting to the bottom of this! Fixes #2997
This commit is contained in:
parent
d3fdd4a575
commit
1ec6583494
@ -62,9 +62,6 @@ Rectangle {
|
||||
anchors.top: backUpText.bottom
|
||||
anchors.topMargin: Style.current.padding
|
||||
onClicked: {
|
||||
let hiddenBannerIds = appSettings.hiddenCommunityBackUpBanners
|
||||
hiddenBannerIds.push(chatsModel.communities.activeCommunity.id)
|
||||
appSettings.hiddenCommunityBackUpBanners = hiddenBannerIds
|
||||
openPopup(transferOwnershipPopup, {privateKey: chatsModel.communities.exportCommunity()})
|
||||
}
|
||||
}
|
||||
@ -74,6 +71,9 @@ Rectangle {
|
||||
TransferOwnershipPopup {
|
||||
anchors.centerIn: parent
|
||||
onClosed: {
|
||||
let hiddenBannerIds = appSettings.hiddenCommunityBackUpBanners
|
||||
hiddenBannerIds.push(chatsModel.communities.activeCommunity.id)
|
||||
appSettings.hiddenCommunityBackUpBanners = hiddenBannerIds
|
||||
destroy()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user