feat: strip workspace qualifiers when creating windows
This commit is contained in:
parent
c69a6dde67
commit
9e08512927
|
@ -1023,6 +1023,11 @@ void WindowCreationPayload::clearWorkspaceName() {
|
||||||
m_workspaceName = m_workspaceName.substr(
|
m_workspaceName = m_workspaceName.substr(
|
||||||
SPECIAL_QUALIFIER_PREFIX_LEN, m_workspaceName.length() - SPECIAL_QUALIFIER_PREFIX_LEN);
|
SPECIAL_QUALIFIER_PREFIX_LEN, m_workspaceName.length() - SPECIAL_QUALIFIER_PREFIX_LEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::size_t spaceFound = m_workspaceName.find(' ');
|
||||||
|
if (spaceFound != std::string::npos) {
|
||||||
|
m_workspaceName.erase(m_workspaceName.begin() + spaceFound, m_workspaceName.end());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowCreationPayload::moveToWorksace(std::string &new_workspace_name) {
|
void WindowCreationPayload::moveToWorksace(std::string &new_workspace_name) {
|
||||||
|
|
Loading…
Reference in New Issue