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

Method setTemporaryPath

app/src/Misc/WorkspaceManager.cpp:109–119  ·  view source on GitHub ↗

* @brief Redirects the workspace to a transient path without persisting it (benchmark use). */

Source from the content-addressed store, hash-verified

107 * @brief Redirects the workspace to a transient path without persisting it (benchmark use).
108 */
109void Misc::WorkspaceManager::setTemporaryPath(const QString& path)
110{
111 Q_ASSERT(!path.isEmpty());
112 if (m_temporaryActive)
113 return;
114
115 m_savedPath = m_path;
116 m_path = path;
117 m_temporaryActive = true;
118 Q_EMIT pathChanged();
119}
120
121/**
122 * @brief Restores the workspace path saved by setTemporaryPath().

Callers 1

beginSessionMethod · 0.80

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected