We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a42eee commit f7dee62Copy full SHA for f7dee62
1 file changed
Sources/OvUI/include/OvUI/Plugins/DDTarget.h
@@ -41,6 +41,10 @@ namespace OvUI::Plugins
41
42
if (p_context == EPluginExecutionContext::WIDGET)
43
{
44
+ // If the widget is disabled, don't accept drag-and-drop
45
+ if ((GImGui->CurrentItemFlags & ImGuiItemFlags_Disabled) != 0)
46
+ return;
47
+
48
const ImGuiID itemID = ImGui::GetItemID();
49
const ImGuiID targetSeed = itemID != 0 ? itemID : ImGui::GetID(this);
50
const ImGuiID targetID = ImHashStr(identifier.c_str(), 0, targetSeed);
0 commit comments