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

Method clearTemporaryPath

app/src/Misc/WorkspaceManager.cpp:124–133  ·  view source on GitHub ↗

* @brief Restores the workspace path saved by setTemporaryPath(). */

Source from the content-addressed store, hash-verified

122 * @brief Restores the workspace path saved by setTemporaryPath().
123 */
124void Misc::WorkspaceManager::clearTemporaryPath()
125{
126 if (!m_temporaryActive)
127 return;
128
129 m_path = m_savedPath;
130 m_temporaryActive = false;
131 m_savedPath.clear();
132 Q_EMIT pathChanged();
133}
134
135/**
136 * @brief Resets the workspace path to the default location.

Callers 1

endSessionMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected