Retrieving Application name from umbrella project and using it to determine the path of the QtMaintenanceTool.

This commit is contained in:
2025-11-01 10:52:04 +01:00
parent 7ba0304232
commit 13b53683a5

View File

@ -7,6 +7,7 @@
#include <QSettings>
#include <QString>
#include "../../ApplicationConfig.h"
#include "CoreConfig.h"
#include "constants.h"
@ -70,7 +71,7 @@ QString GenericCore::getMaintenanceToolFilePath() const {
/// setting the applicationDirPath hard coded to test update feature from IDE
#ifdef QT_DEBUG
// REFACTOR retrieve application name automatically instead of using hard coded name
applicationDirPath = "/opt/GenericQtClient";
applicationDirPath = QString("/opt/%1").arg(APPLICATION_NAME);
#endif
#ifdef Q_OS_MAC