Methods to load all Collections into memory, and handle enabling the active ones */ loads all Collection Systems
| 126 | /* Methods to load all Collections into memory, and handle enabling the active ones */ |
| 127 | // loads all Collection Systems |
| 128 | void CollectionSystemManager::loadCollectionSystems(bool async) |
| 129 | { |
| 130 | initAutoCollectionSystems(); |
| 131 | CollectionSystemDecl decl = mCollectionSystemDeclsIndex[myCollectionsName]; |
| 132 | mCustomCollectionsBundle = createNewCollectionEntry(decl.name, decl, false); |
| 133 | // we will also load custom systems here |
| 134 | initCustomCollectionSystems(); |
| 135 | if(Settings::getInstance()->getString("CollectionSystemsAuto") != "" || Settings::getInstance()->getString("CollectionSystemsCustom") != "") |
| 136 | { |
| 137 | // Now see which ones are enabled |
| 138 | loadEnabledListFromSettings(); |
| 139 | |
| 140 | // add to the main System Vector, and create Views as needed |
| 141 | if (!async) |
| 142 | updateSystemsList(); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | // loads settings |
| 147 | void CollectionSystemManager::loadEnabledListFromSettings() |