From d796ab350e867604573e6b925c583739be1948b1 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 7 Jan 2025 16:33:31 +0100 Subject: [PATCH] Use Component.onCompleted as we don't yet depends on KF 6.10 --- src/qml/QuickSwitcher.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qml/QuickSwitcher.qml b/src/qml/QuickSwitcher.qml index a60efb26f..57d292140 100644 --- a/src/qml/QuickSwitcher.qml +++ b/src/qml/QuickSwitcher.qml @@ -27,7 +27,8 @@ Kirigami.SearchDialog { onTextChanged: RoomManager.sortFilterRoomListModel.filterText = text model: RoomManager.sortFilterRoomListModel emptyText: i18nc("Placeholder message", "No room found") - emptyHelpfulAction: Kirigami.Action { + Kirigami.Action { + id: exploreRoomAction text: i18nc("@action:button", "Explore rooms") icon.name: "compass" onTriggered: { @@ -43,6 +44,8 @@ Kirigami.SearchDialog { } } + Component.onCompleted: emptyHelpfulAction = exploreRoomAction + parent: QQC2.Overlay.overlay delegate: RoomDelegate {