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

Method storeFrameParserCode

app/src/DataModel/ProjectModel.cpp:4969–4979  ·  view source on GitHub ↗

* @brief Stores frame parser code without emitting signals or reloading the JS engine. */

Source from the content-addressed store, hash-verified

4967 * @brief Stores frame parser code without emitting signals or reloading the JS engine.
4968 */
4969void DataModel::ProjectModel::storeFrameParserCode(int sourceId, const QString& code)
4970{
4971 if (sourceId < 0 || sourceId >= static_cast<int>(m_sources.size()))
4972 return;
4973
4974 if (m_sources[sourceId].frameParserCode == code)
4975 return;
4976
4977 m_sources[sourceId].frameParserCode = code;
4978 setModified(true);
4979}
4980
4981/**
4982 * @brief Stages the active dashboard tab group ID.

Callers 1

JsCodeEditorMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected