fix package listing
load a package of the proper type before listing this makes the proper package structures to be loaded
This commit is contained in:
parent
98583160cb
commit
60fe4f080c
@ -436,6 +436,10 @@ QStringList PlasmaPkgPrivate::packages(const QStringList &types)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Loading a package of the given type, caches the proper
|
||||||
|
//packagestructures in the packageloader, making the listing
|
||||||
|
//of packages succeed
|
||||||
|
Plasma::PluginLoader::self()->loadPackage(type);
|
||||||
const QList<KPluginMetaData> plugins = KPackage::PackageLoader::self()->listPackages(type);
|
const QList<KPluginMetaData> plugins = KPackage::PackageLoader::self()->listPackages(type);
|
||||||
for (auto plugin : plugins) {
|
for (auto plugin : plugins) {
|
||||||
const QString _plugin = plugin.pluginId();
|
const QString _plugin = plugin.pluginId();
|
||||||
|
Loading…
Reference in New Issue
Block a user