fix(new_editor/docking): restore cross-window drop preview

This commit is contained in:
2026-04-15 13:22:58 +08:00
parent 07516b8c2c
commit 7e21e3887e
7 changed files with 91 additions and 1 deletions

View File

@@ -65,6 +65,17 @@ const std::string& EditorShellRuntime::GetBuiltInIconError() const {
return m_builtInIcons.GetLastError();
}
void EditorShellRuntime::SetExternalDockHostDropPreview(
const Widgets::UIEditorDockHostDropPreviewState& preview) {
m_shellInteractionState.workspaceInteractionState.dockHostInteractionState
.dockHostState.dropPreview = preview;
}
void EditorShellRuntime::ClearExternalDockHostDropPreview() {
m_shellInteractionState.workspaceInteractionState.dockHostInteractionState
.dockHostState.dropPreview = {};
}
ProjectPanel::CursorKind EditorShellRuntime::GetHostedContentCursorKind() const {
return m_projectPanel.GetCursorKind();
}