diff options
Diffstat (limited to 'modules/launcher/ContentList.qml')
| -rw-r--r-- | modules/launcher/ContentList.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/launcher/ContentList.qml b/modules/launcher/ContentList.qml index ad116f7..7a3da96 100644 --- a/modules/launcher/ContentList.qml +++ b/modules/launcher/ContentList.qml @@ -15,8 +15,8 @@ Item { required property int padding required property int rounding - property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `) - property var currentList: (showWallpapers ? wallpaperList : appList).item + readonly property bool showWallpapers: search.text.startsWith(`${Config.launcher.actionPrefix}wallpaper `) + property var currentList anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom @@ -29,8 +29,9 @@ Item { name: "apps" PropertyChanges { + root.currentList: appList.item root.implicitWidth: Config.launcher.sizes.itemWidth - root.implicitHeight: Math.max(empty.height, appList.height) + root.implicitHeight: Math.max(empty.implicitHeight, appList.implicitHeight) appList.active: true } @@ -43,7 +44,8 @@ Item { name: "wallpapers" PropertyChanges { - root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth, wallpaperList.width) + root.currentList: wallpaperList.item + root.implicitWidth: Math.max(Config.launcher.sizes.itemWidth, wallpaperList.implicitWidth) root.implicitHeight: Config.launcher.sizes.wallpaperHeight wallpaperList.active: true } @@ -96,7 +98,6 @@ Item { anchors.right: parent.right sourceComponent: AppList { - padding: root.padding search: root.search visibilities: root.visibilities } |