Skip to content
Snippets Groups Projects
Commit e90aa3d8 authored by rswindell's avatar rswindell
Browse files

Added AutoAreas option (to global section), set to a comma-separated list of

Library names (case-sensitive) for which you would like to have their
directories automatically added to your tickit area list.
Directories whose names are invalid area tags (e.g. contain a space) are
not included.
parent d44c11f8
Branches
Tags
No related merge requests found
......@@ -75,6 +75,15 @@ function TickITCfg() {
if (require(this.gcfg.handler, tmp, "Handle_TIC") == null)
delete this.gcfg.handler;
}
var auto_areas = tcfg.iniGetValue(null, "AutoAreas", []);
for(var code in file_area.dir) {
var dir = file_area.dir[code];
if(auto_areas.indexOf(dir.lib_name) < 0)
continue;
if(dir.name.indexOf(' ') >= 0) // Invalid areatag
continue;
this.acfg[dir.name.toLowerCase()] = { dir: code };
}
sects = tcfg.iniGetSections();
for (i=0; i<sects.length; i++) {
this.acfg[sects[i].toLowerCase()] = tcfg.iniGetObject(sects[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment