diff --git a/interfaces/pluginmodel.cpp b/interfaces/pluginmodel.cpp index 26c50d03c..652c36558 100644 --- a/interfaces/pluginmodel.cpp +++ b/interfaces/pluginmodel.cpp @@ -16,7 +16,7 @@ PluginModel::PluginModel(QObject *parent) { connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged); connect(this, &QAbstractItemModel::rowsRemoved, this, &PluginModel::rowsChanged); - m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect")); + m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"), std::not_fn(&KPluginMetaData::isHidden)); } PluginModel::~PluginModel() diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 886c8cac6..8519cd5ee 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -190,7 +190,7 @@ void KdeConnectKcm::resetDeviceView() }, this); - const QVector pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect")); + const QVector pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"), std::not_fn(&KPluginMetaData::isHidden)); QVector availablePluginInfo; m_oldSupportedPluginNames = currentDevice->supportedPlugins();