diff --git a/src/core/atcore.h b/src/core/atcore.h --- a/src/core/atcore.h +++ b/src/core/atcore.h @@ -60,7 +60,7 @@ { Q_OBJECT Q_PROPERTY(QString version READ version CONSTANT) - Q_PROPERTY(QStringList availableFirmwarePlugins READ availableFirmwarePlugins) + Q_PROPERTY(QStringList availableFirmwarePlugins READ availableFirmwarePlugins NOTIFY availableFirmwarePluginsChanged) Q_PROPERTY(int extruderCount READ extruderCount WRITE setExtruderCount NOTIFY extruderCountChanged) Q_PROPERTY(int temperatureTimerInterval READ temperatureTimerInterval WRITE setTemperatureTimerInterval NOTIFY temperatureTimerIntervalChanged); Q_PROPERTY(int serialTimerInterval READ serialTimerInterval WRITE setSerialTimerInterval NOTIFY serialTimerIntervalChanged) @@ -308,6 +308,11 @@ */ void pushedCommand(const QByteArray &comm); + /** + * @brief availableFirmwarePluginsChanged notify about the new plugins available + */ + void availableFirmwarePluginsChanged(); + public slots: /** diff --git a/src/core/atcore.cpp b/src/core/atcore.cpp --- a/src/core/atcore.cpp +++ b/src/core/atcore.cpp @@ -117,6 +117,7 @@ QMap tempMap = findFirmwarePlugins(path); if (!tempMap.isEmpty()) { d->plugins = tempMap; + emit availableFirmwarePluginsChanged(); return; } }