MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / onProjectSourceChanged

Method onProjectSourceChanged

app/src/IO/ConnectionManager.cpp:1323–1334  ·  view source on GitHub ↗

* @brief Reconfigures a live project source when its framing settings change. */

Source from the content-addressed store, hash-verified

1321 * @brief Reconfigures a live project source when its framing settings change.
1322 */
1323void IO::ConnectionManager::onProjectSourceChanged(int sourceId)
1324{
1325 if (sourceId <= 0 || AppState::instance().operationMode() != SerialStudio::ProjectFile)
1326 return;
1327
1328 auto it = m_devices.find(sourceId);
1329 if (it == m_devices.end() || !it->second)
1330 return;
1331
1332 it->second->reconfigure(buildFrameConfig(sourceId));
1333 Q_EMIT configurationChanged();
1334}
1335
1336/**
1337 * @brief Returns true when the current project sources are all configured.

Callers

nothing calls this directly

Calls 3

operationModeMethod · 0.80
findMethod · 0.80
reconfigureMethod · 0.80

Tested by

no test coverage detected