Salome HOME
fix module list updating in SalomeApprc
authorDUC ANH HOANG <dh77501n@dsp1043837>
Tue, 16 Jan 2024 15:54:49 +0000 (16:54 +0100)
committerDUC ANH HOANG <dh77501n@dsp1043837>
Tue, 16 Jan 2024 15:54:49 +0000 (16:54 +0100)
src/LightApp/LightApp_Application.cxx
src/SalomeApprc_utils/SalomeApprc_utils.cxx

index 89fb8ec1278723b21a344ea4783e00963e0672e2..8d7676bdfd633d7c72ab900f08d5a03aa39d16d8 100644 (file)
@@ -1099,7 +1099,7 @@ bool LightApp_Application::addUserModule( const QString& name, const QString& ro
   // 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));
index 460058801ad63879a59be51e8bb89a9d9df0b0f7..17a8ed214627ba7a5feb73649fa1684e990938e7 100644 (file)
@@ -65,7 +65,7 @@ void AddComponents_from_salomemodules(const QString& salomemodules, const QDir&
 }
 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;