Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.cpp
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 100 | { | |||
---|---|---|---|---|---|
112 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/../Plugins/AtCore")); | 112 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/../Plugins/AtCore")); | ||
113 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/AtCore")); | 113 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/AtCore")); | ||
114 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/plugins")); | 114 | paths.prepend(qApp->applicationDirPath() + QStringLiteral("/plugins")); | ||
115 | for (const auto &path : paths) { | 115 | for (const auto &path : paths) { | ||
116 | qCDebug(ATCORE_PLUGIN) << "Checking: " << path; | 116 | qCDebug(ATCORE_PLUGIN) << "Checking: " << path; | ||
117 | QMap <QString, QString> tempMap = findFirmwarePlugins(path); | 117 | QMap <QString, QString> tempMap = findFirmwarePlugins(path); | ||
118 | if (!tempMap.isEmpty()) { | 118 | if (!tempMap.isEmpty()) { | ||
119 | d->plugins = tempMap; | 119 | d->plugins = tempMap; | ||
120 | emit availableFirmwarePluginsChanged(); | ||||
120 | return; | 121 | return; | ||
121 | } | 122 | } | ||
122 | } | 123 | } | ||
123 | setState(AtCore::STATES::DISCONNECTED); | 124 | setState(AtCore::STATES::DISCONNECTED); | ||
124 | } | 125 | } | ||
125 | 126 | | |||
126 | QString AtCore::version() const | 127 | QString AtCore::version() const | ||
127 | { | 128 | { | ||
▲ Show 20 Lines • Show All 780 Lines • Show Last 20 Lines |