mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-26 21:41:11 +00:00
fix(StatusStickerPackClickPopup): fix crash
the button to (un)install would be either greyed out or result in a crash: - we were passing the popup a wrong store (w/o networkConnectionStore) - the condition to `greyedOut` was inverted
This commit is contained in:
parent
86a58d3298
commit
e506bbfd6b
@ -87,7 +87,7 @@ StatusSectionLayout {
|
|||||||
emojiPopup: root.emojiPopup
|
emojiPopup: root.emojiPopup
|
||||||
stickersPopup: root.stickersPopup
|
stickersPopup: root.stickersPopup
|
||||||
onOpenStickerPackPopup: {
|
onOpenStickerPackPopup: {
|
||||||
Global.openPopup(statusStickerPackClickPopup, {packId: stickerPackId} )
|
Global.openPopup(statusStickerPackClickPopup, {packId: stickerPackId, store: root.stickersPopup.store} )
|
||||||
}
|
}
|
||||||
onOpenAppSearch: {
|
onOpenAppSearch: {
|
||||||
root.openAppSearch();
|
root.openAppSearch();
|
||||||
@ -167,7 +167,6 @@ StatusSectionLayout {
|
|||||||
Component {
|
Component {
|
||||||
id: statusStickerPackClickPopup
|
id: statusStickerPackClickPopup
|
||||||
StatusStickerPackClickPopup{
|
StatusStickerPackClickPopup{
|
||||||
store: root.rootStore
|
|
||||||
onClosed: {
|
onClosed: {
|
||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ ModalPopup {
|
|||||||
isInstalled: installed
|
isInstalled: installed
|
||||||
isBought: bought
|
isBought: bought
|
||||||
isPending: pending
|
isPending: pending
|
||||||
greyedOut: store.networkConnectionStore.stickersNetworkAvailable
|
greyedOut: !store.networkConnectionStore.stickersNetworkAvailable
|
||||||
tooltip.text: store.networkConnectionStore.stickersNetworkUnavailableText
|
tooltip.text: store.networkConnectionStore.stickersNetworkUnavailableText
|
||||||
onInstallClicked: {
|
onInstallClicked: {
|
||||||
stickersModule.install(packId);
|
stickersModule.install(packId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user