From e0a64f4a30335108f90d798bf1421cc363e2a1c9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 5 Mar 2024 21:50:45 +0100 Subject: [PATCH] app: Put the Placeholder inside the view If there's more than one main item in the ScrollablePage, QtQuick gets confused and the placeholder does not get displayed. --- app/qml/FindDevicesPage.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/qml/FindDevicesPage.qml b/app/qml/FindDevicesPage.qml index 600c6731b..eb8a30a96 100644 --- a/app/qml/FindDevicesPage.qml +++ b/app/qml/FindDevicesPage.qml @@ -34,12 +34,6 @@ Kirigami.ScrollablePage onTriggered: root.refreshing = false } - Kirigami.PlaceholderMessage { - text: i18nd("kdeconnect-app", "No devices found") - anchors.centerIn: parent - visible: devices.count === 0 - } - ListView { id: devices section { @@ -59,6 +53,11 @@ Kirigami.ScrollablePage } } } + Kirigami.PlaceholderMessage { + text: i18nd("kdeconnect-app", "No devices found") + anchors.centerIn: parent + visible: devices.count === 0 + } model: DevicesSortProxyModel { sourceModel: DevicesModel {}