// b. here we add custom modules (manually added by the user)
if ( HAS_SALOME_ON_DEMAND )
{
- // Update SalomeApprc.X.X.X with SALOME_APPLICATION_DIR
+ // Update rc file
updateSalomeApprc();
+
QStringList modList = resourceMgr()->stringValue( "launch", "user_modules" ).split( ";", QString::SkipEmptyParts );
foreach ( QString aModule, modList )
addUserModule( aModule, resourceMgr()->stringValue( "user_modules", aModule ) );
}
}
+/*!
+ Update rc file with SALOME_APPLICATION_DIR or with SALOME_MODULES.
+*/
void LightApp_Application::updateSalomeApprc()
{
SUIT_ResourceMgr* resMgr = resourceMgr();
void AddGuiComponent(const QString& comp, const QString& CompRoot, SUIT_ResourceMgr* ResMgr)
{
QStringList CompsResMgr = ResMgr->stringValue("launch", "user_modules").split(";", QString::SkipEmptyParts);
- if (!CompsResMgr.contains(comp))
- {
- ResMgr->setValue( "user_modules", comp, CompRoot );
- }
+ ResMgr->setValue( "user_modules", comp, CompRoot );
CompsResMgr << comp;
CompsResMgr.removeDuplicates();