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 -1
View File
@@ -8,7 +8,9 @@ CalcUiCppPlugin::~CalcUiCppPlugin() { delete m_logos; }
void CalcUiCppPlugin::initLogos(LogosAPI* api)
{
if (m_logos) return;
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 so the QML replica
// can see its properties and call its slots.