* @brief Reconfigures a live project source when its framing settings change. */
| 1321 | * @brief Reconfigures a live project source when its framing settings change. |
| 1322 | */ |
| 1323 | void 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. |
nothing calls this directly
no test coverage detected