* @brief Stores frame parser code without emitting signals or reloading the JS engine. */
| 4967 | * @brief Stores frame parser code without emitting signals or reloading the JS engine. |
| 4968 | */ |
| 4969 | void 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. |