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

Method onProjectFileCleared

app/src/AppState.cpp:210–220  ·  view source on GitHub ↗

* @brief Clears the stored project file path and notifies listeners. */

Source from the content-addressed store, hash-verified

208 * @brief Clears the stored project file path and notifies listeners.
209 */
210void AppState::onProjectFileCleared()
211{
212 if (m_projectFilePath.isEmpty())
213 return;
214
215 m_projectFilePath.clear();
216 if (!m_ephemeralSession)
217 m_settings.remove("project_file_path");
218
219 Q_EMIT projectFileChanged();
220}
221
222//--------------------------------------------------------------------------------------------------
223// Private helpers

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
clearMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected