mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Version control plugins: Remove defunct KServiceTypeTrader query for available plugins
We do not load those plugins anymore, consequently it does not make sense to find and display them in the settings
This commit is contained in:
parent
f386f848de
commit
e447b88296
|
@ -338,18 +338,6 @@ void ContextMenuSettingsPage::loadVersionControlSystems()
|
|||
loadedPlugins += pluginName;
|
||||
}
|
||||
|
||||
const KService::List pluginServices = KServiceTypeTrader::self()->query(QStringLiteral("FileViewVersionControlPlugin"));
|
||||
for (const auto &plugin : pluginServices) {
|
||||
const QString pluginName = plugin->name();
|
||||
if (loadedPlugins.contains(pluginName)) {
|
||||
continue;
|
||||
}
|
||||
addRow(QStringLiteral("code-class"),
|
||||
pluginName,
|
||||
VersionControlServicePrefix + pluginName,
|
||||
enabledPlugins.contains(pluginName));
|
||||
}
|
||||
|
||||
m_sortModel->sort(Qt::DisplayRole);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue