Skip to content

Commit

Permalink
Merge pull request #112 from gehelem/AddAfterInitExternaEvent
Browse files Browse the repository at this point in the history
produce event to do things after module init
  • Loading branch information
gehelem authored Nov 7, 2024
2 parents 4395dc0 + 2b1fbc5 commit cefa4ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ bool Controller::loadModule(QString lib, QString name, QString label, QString pr
connect(mod, &Basemodule::loadOtherModule, this, &Controller::loadModule);
connect(this, &Controller::controllerEvent, mod, &Basemodule::OnExternalEvent);
//connect(wshandler, &WShandler::externalEvent, mod, &Basemodule::OnExternalEvent);
mod->OnExternalEvent("afterinit", name, QString(), QVariantMap());
mod->sendDump();

QList<Basemodule *> othermodules = findChildren<Basemodule *>(QString(), Qt::FindChildrenRecursively);
Expand Down

0 comments on commit cefa4ab

Please sign in to comment.