Commit 1205b31c authored by Vincent Pinon's avatar Vincent Pinon
Browse files

Prioritize custom & local effects definitions over system files

This fixes personal presets & custom builds to be hidden by
older package version
parent ed48c8a8
......@@ -80,7 +80,9 @@ template <typename AssetType> void AbstractAssetsRepository<AssetType>::init()
list, while discarding the bare version of each tag (the one with no file associated)
*/
std::unordered_map<QString, Info> customAssets;
for (const auto &dir : asset_dirs) {
// reverse order to prioritize local install
QListIterator<QString> dirs_it(asset_dirs);
for (dirs_it.toBack(); dirs_it.hasPrevious();) { auto dir=dirs_it.previous();
QDir current_dir(dir);
QStringList filter;
filter << QStringLiteral("*.xml");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment