mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
chore: disable stickers popup when no stickers available
This is needed so that statusChatInput can work for the timeline without exploding. Timeline doesn't need stickers
This commit is contained in:
parent
c11eb69ac1
commit
0957ec1ded
@ -23,8 +23,8 @@ Rectangle {
|
|||||||
property bool isReply: false
|
property bool isReply: false
|
||||||
property bool isImage: false
|
property bool isImage: false
|
||||||
|
|
||||||
property var recentStickers: StickerData {}
|
property var recentStickers
|
||||||
property var stickerPackList: StickerPackData {}
|
property var stickerPackList
|
||||||
|
|
||||||
property int extraHeightFactor: calculateExtraHeightFactor()
|
property int extraHeightFactor: calculateExtraHeightFactor()
|
||||||
property int messageLimit: 2000
|
property int messageLimit: 2000
|
||||||
@ -477,10 +477,9 @@ Rectangle {
|
|||||||
|
|
||||||
StatusStickersPopup {
|
StatusStickersPopup {
|
||||||
id: stickersPopup
|
id: stickersPopup
|
||||||
width: 360
|
|
||||||
height: 440
|
|
||||||
x: parent.width - width - Style.current.halfPadding
|
x: parent.width - width - Style.current.halfPadding
|
||||||
y: -height
|
y: -height
|
||||||
|
enabled: !!control.recentStickers && !!control.stickerPackList
|
||||||
recentStickers: control.recentStickers
|
recentStickers: control.recentStickers
|
||||||
stickerPackList: control.stickerPackList
|
stickerPackList: control.stickerPackList
|
||||||
onStickerSelected: {
|
onStickerSelected: {
|
||||||
|
@ -12,6 +12,8 @@ Popup {
|
|||||||
property var recentStickers: StickerData {}
|
property var recentStickers: StickerData {}
|
||||||
property var stickerPackList: StickerPackData {}
|
property var stickerPackList: StickerPackData {}
|
||||||
signal stickerSelected(string hashId, string packId)
|
signal stickerSelected(string hashId, string packId)
|
||||||
|
width: 360
|
||||||
|
height: 440
|
||||||
modal: false
|
modal: false
|
||||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user