MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / loadCollectionSystems

Method loadCollectionSystems

src/server/gui/app/CollectionSystemManager.cpp:128–144  ·  view source on GitHub ↗

Methods to load all Collections into memory, and handle enabling the active ones */ loads all Collection Systems

Source from the content-addressed store, hash-verified

126/* Methods to load all Collections into memory, and handle enabling the active ones */
127// loads all Collection Systems
128void 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
147void CollectionSystemManager::loadEnabledListFromSettings()

Callers 1

loadConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected