fix(new_editor): stabilize detached window close lifecycle

This commit is contained in:
2026-04-21 21:47:05 +08:00
parent ee1f817dc6
commit 4b105ec88f
2 changed files with 10 additions and 1 deletions

View File

@@ -233,7 +233,9 @@ bool EditorWindow::Initialize(
void EditorWindow::Shutdown() {
ForceReleasePointerCapture();
m_runtime->Shutdown();
if (m_runtime->IsReady()) {
m_runtime->Shutdown();
}
m_inputController->ClearPendingEvents();
m_chromeController->Reset();
}