Dont show hidden plugins in settings

This will be used by the receiving end of the share input devices
functionality. It uses the mousepadplugin for remote input
so it makes sense to not have to configure it separately and
only have one user visible "Allow remote control" option.
This commit is contained in:
David Redondo 2024-07-02 11:43:40 +02:00
parent b7763fc888
commit 5a11df5d7c
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -190,7 +190,7 @@ void KdeConnectKcm::resetDeviceView()
},
this);
const QVector<KPluginMetaData> pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"));
const QVector<KPluginMetaData> pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"), std::not_fn(&KPluginMetaData::isHidden));
QVector<KPluginMetaData> availablePluginInfo;
m_oldSupportedPluginNames = currentDevice->supportedPlugins();