[plasma/plasma-bigscreen] kcms/kdeconnect/ui: kcms/kdeconnect: Add "No devices found" text when no devices could be found

Devin Lin <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e81cc23821461acd9a59c288a565e6c7ba09aac1 by Devin Lin, on behalf of User8395.
Committed on 26/07/2026 at 02:20.
Pushed by devinlin into branch 'master'.

kcms/kdeconnect: Add "No devices found" text when no devices could be found

If the devices model count is 0, the header text will show "No devices found", otherwise it will show "Devices".

M  +1    -1    kcms/kdeconnect/ui/main.qml

https://invent.kde.org/plasma/plasma-bigscreen/-/commit/e81cc23821461acd9a59c288a565e6c7ba09aac1

diff --git a/kcms/kdeconnect/ui/main.qml b/kcms/kdeconnect/ui/main.qml
index 0943238d..fdd5d1aa 100644
--- a/kcms/kdeconnect/ui/main.qml
+++ b/kcms/kdeconnect/ui/main.qml
@@ -41,7 +41,7 @@ KCM.SimpleKCM {
         spacing: 0
 
         QQC2.Label {
-            text: i18n("Devices")
+            text: allDevicesModel.count == 0 ? i18n("No devices found") : i18n("Devices")
             font.pixelSize: Bigscreen.Units.headingFontPixelSize
             Layout.topMargin: Kirigami.Units.gridUnit
             Layout.bottomMargin: Kirigami.Units.gridUnit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.