core: simplify sanityCheckWorkspaces
This commit is contained in:
parent
4909b0f350
commit
094bce8118
3 changed files with 8 additions and 34 deletions
|
|
@ -41,6 +41,9 @@ void CWorkspace::init(PHLWORKSPACE self) {
|
|||
|
||||
m_bInert = false;
|
||||
|
||||
const auto WORKSPACERULE = g_pConfigManager->getWorkspaceRuleFor(self);
|
||||
m_bPersistent = WORKSPACERULE.isPersistent;
|
||||
|
||||
g_pEventManager->postEvent({"createworkspace", m_szName});
|
||||
g_pEventManager->postEvent({"createworkspacev2", std::format("{},{}", m_iID, m_szName)});
|
||||
EMIT_HOOK_EVENT("createWorkspace", this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue