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

Method apply

app/src/DataModel/Editors/JsCodeEditor.cpp:370–373  ·  view source on GitHub ↗

* @brief Validates the current code and reloads the FrameParser engine. */

Source from the content-addressed store, hash-verified

368 * @brief Validates the current code and reloads the FrameParser engine.
369 */
370void DataModel::JsCodeEditor::apply()
371{
372 (void)DataModel::FrameParser::instance().loadScript(m_sourceId, text(), true);
373}
374
375/**
376 * @brief Opens a file dialog to import an external script file.

Callers

nothing calls this directly

Calls 1

loadScriptMethod · 0.45

Tested by

no test coverage detected