// need to do that again.
// TODO: Maybe it's better to return ModuleInfo from appendModuleInfo() and check status.
const QString title = resMgr->stringValue(name, "name", QString()).trimmed();
- if (resMgr->booleanValue(name, "gui", false) || !title.isEmpty())
+ if (resMgr->booleanValue(name, "gui", false) || !title.isEmpty() && interactive)
{
// Append module to the menu / toolbar
LightApp_ModuleAction* moduleAction = qobject_cast<LightApp_ModuleAction*>(action(ModulesListId));
}
void AddGuiComponent(const QString& comp, const QString& CompRoot, SUIT_ResourceMgr* ResMgr)
{
- QStringList CompsResMgr = ResMgr->stringValue("launch", "user_modules").split(";", QString::SkipEmptyParts);
+ QStringList CompsResMgr;
ResMgr->setValue( "user_modules", comp, CompRoot );
CompsResMgr << comp;