From 88fd173829b89444b064821cebc053cbcc2e7d54 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 7 Oct 2025 22:37:54 +0200 Subject: [PATCH] Show a placeholder message if there are no extensions --- src/roominfo/WidgetsPage.qml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/roominfo/WidgetsPage.qml b/src/roominfo/WidgetsPage.qml index 96bf68af5..92f607565 100644 --- a/src/roominfo/WidgetsPage.qml +++ b/src/roominfo/WidgetsPage.qml @@ -19,10 +19,15 @@ Kirigami.ScrollablePage { ListView { id: extView - visible: extView.count !== 0 currentIndex: -1 + Kirigami.PlaceholderMessage { + anchors.centerIn: parent + text: i18nc("@placeholder", "This room does not use any extensions") + visible: extView.count === 0 + } + model: WidgetModel { id: widgetModel room: root.room @@ -67,10 +72,4 @@ Kirigami.ScrollablePage { onClicked: Qt.openUrlExternally(url) } } - - Kirigami.PlaceholderMessage { - text: i18nc("@info:placeholder", "There are no extensions in this room.") - visible: extView.count === 0 - anchors.centerIn: parent - } }