fix logosAPI variable handling

This commit is contained in:
Dario Gabriel Lipicar
2026-05-29 11:25:10 -03:00
parent 816571348f
commit 2cfcb9a3e9
5 changed files with 17 additions and 11 deletions
+3 -2
View File
@@ -244,7 +244,6 @@ signals:
void eventResponse(const QString& eventName, const QVariantList& args);
private:
LogosAPI* m_logosAPI = nullptr;
LogosModules* m_logos = nullptr;
};
```
@@ -269,7 +268,9 @@ CalcUiCppPlugin::~CalcUiCppPlugin() { delete m_logos; }
void CalcUiCppPlugin::initLogos(LogosAPI* api)
{
m_logosAPI = api;
// Assign to the inherited `logosAPI` member from PluginInterface — the Logos
// host reads it directly to dispatch calls; a separate member won't be seen.
logosAPI = api;
m_logos = new LogosModules(api);
// Register this object as the Remote Objects source
setBackend(this);