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 isImage: false
|
||||
|
||||
property var recentStickers: StickerData {}
|
||||
property var stickerPackList: StickerPackData {}
|
||||
property var recentStickers
|
||||
property var stickerPackList
|
||||
|
||||
property int extraHeightFactor: calculateExtraHeightFactor()
|
||||
property int messageLimit: 2000
|
||||
@ -477,10 +477,9 @@ Rectangle {
|
||||
|
||||
StatusStickersPopup {
|
||||
id: stickersPopup
|
||||
width: 360
|
||||
height: 440
|
||||
x: parent.width - width - Style.current.halfPadding
|
||||
y: -height
|
||||
enabled: !!control.recentStickers && !!control.stickerPackList
|
||||
recentStickers: control.recentStickers
|
||||
stickerPackList: control.stickerPackList
|
||||
onStickerSelected: {
|
||||
|
@ -12,6 +12,8 @@ Popup {
|
||||
property var recentStickers: StickerData {}
|
||||
property var stickerPackList: StickerPackData {}
|
||||
signal stickerSelected(string hashId, string packId)
|
||||
width: 360
|
||||
height: 440
|
||||
modal: false
|
||||
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
|
||||
background: Rectangle {
|
||||
|
Loading…
x
Reference in New Issue
Block a user