]> cloud.milkyroute.net Git - dolphin.git/commitdiff
DolphinView: Add placeholder label for AFC kio
authorKai Uwe Broulik <kde@privat.broulik.de>
Tue, 29 Nov 2022 19:31:26 +0000 (20:31 +0100)
committerKai Uwe Broulik <kde@privat.broulik.de>
Wed, 30 Nov 2022 13:28:53 +0000 (13:28 +0000)
Similar to how it's special-cased for MTP

src/views/dolphinview.cpp

index 5f331dc270a879f3f3fc669e0ce6630a35f037d5..c84e642dc8a0362cb19d5acae4d4345dc5faf9e4 100644 (file)
@@ -2264,6 +2264,8 @@ void DolphinView::updatePlaceholderLabel()
         m_placeholderLabel->setText(i18n("No relevant network resources found"));
     } else if (m_url.scheme() == QLatin1String("mtp") && m_url.path() == QLatin1String("/")) {
         m_placeholderLabel->setText(i18n("No MTP-compatible devices found"));
+    } else if (m_url.scheme() == QLatin1String("afc") && m_url.path() == QLatin1String("/")) {
+        m_placeholderLabel->setText(i18n("No Apple devices found"));
     } else if (m_url.scheme() == QLatin1String("bluetooth")) {
         m_placeholderLabel->setText(i18n("No Bluetooth devices found"));
     } else {