mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
Simple precedence of task-specific config over pattern config.
This commit is contained in:
+6
-1
@@ -378,8 +378,13 @@ namespace mob {
|
||||
|
||||
MOB_ASSERT(!tasks.empty());
|
||||
|
||||
for (auto& t : tasks)
|
||||
for (auto& t : tasks) {
|
||||
if (t->name() != task &&
|
||||
details::find_string_for_task(t->name(), key)) {
|
||||
continue;
|
||||
}
|
||||
details::set_string_for_task(t->name(), key, value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// global task option
|
||||
|
||||
Reference in New Issue
Block a user