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:
parent
b7763fc888
commit
5a11df5d7c
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ PluginModel::PluginModel(QObject *parent)
|
||||||
{
|
{
|
||||||
connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged);
|
connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged);
|
||||||
connect(this, &QAbstractItemModel::rowsRemoved, 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()
|
PluginModel::~PluginModel()
|
||||||
|
|
|
@ -190,7 +190,7 @@ void KdeConnectKcm::resetDeviceView()
|
||||||
},
|
},
|
||||||
this);
|
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;
|
QVector<KPluginMetaData> availablePluginInfo;
|
||||||
|
|
||||||
m_oldSupportedPluginNames = currentDevice->supportedPlugins();
|
m_oldSupportedPluginNames = currentDevice->supportedPlugins();
|
||||||
|
|
Loading…
Reference in a new issue