Hide the category list in the emoji picker when there is none

This is easy to test if you have no stickers. It should no longer have
a weird empty space above the placeholder message.
This commit is contained in:
Joshua Goins
2024-11-16 10:53:31 -05:00
parent 16f4e17e8f
commit a909ed498f

View File

@@ -66,6 +66,7 @@ ColumnLayout {
Layout.fillWidth: true
Layout.preferredHeight: root.categoryIconSize + QQC2.ScrollBar.horizontal.height
QQC2.ScrollBar.horizontal.height: QQC2.ScrollBar.horizontal.visible ? QQC2.ScrollBar.horizontal.implicitHeight : 0
visible: categories.count !== 0
ListView {
id: categories