Retrieve filenames from drop event

This commit is contained in:
Simon Lübeß
2025-06-17 18:08:19 +02:00
parent 60482059a4
commit 68745f0515
2 changed files with 175 additions and 5 deletions
+2 -1
View File
@@ -1206,9 +1206,10 @@ namespace GlitchyEditor
if (_isDraggingFromOutside)
{
// Reset drop effect, so the drop targets have to set it themselves (and don't "leak" it).
SetDropEffect(.None);
if (ImGui.BeginDragDropSource(.SourceExtern | .SourceAutoExpirePayload))
if (ImGui.BeginDragDropSource(.SourceExtern | .SourceAutoExpirePayload | .SourceNoPreviewTooltip))
{
ImGui.SetDragDropPayload(.ExternFiles, null, 0);
ImGui.EndDragDropSource();