More fixes
This commit is contained in:
@@ -36,6 +36,7 @@ public class InventoryCategoryNode : SimpleComponentNode
|
||||
|
||||
public event Action<InventoryCategoryNode, bool>? HeaderHoverChanged;
|
||||
public Action? OnRefreshRequested { get; set; }
|
||||
public Action? OnDragEnd { get; set; }
|
||||
|
||||
public InventoryCategoryNode()
|
||||
{
|
||||
@@ -239,7 +240,7 @@ public class InventoryCategoryNode : SimpleComponentNode
|
||||
},
|
||||
IsClickable = true,
|
||||
OnDiscard = node => OnDiscard(node, data),
|
||||
OnEnd = _ => System.AddonInventoryWindow.ManualInventoryRefresh(),
|
||||
OnEnd = _ => OnDragEnd?.Invoke(),
|
||||
OnPayloadAccepted = (node, payload) => OnPayloadAccepted(node, payload, data),
|
||||
OnRollOver = node =>
|
||||
{
|
||||
@@ -292,7 +293,6 @@ public class InventoryCategoryNode : SimpleComponentNode
|
||||
Services.Logger.Debug($"[OnPayload] Source: {sourceLocation. Container} @ {sourceLocation. Slot}");
|
||||
Services.Logger.Debug($"[OnPayload] Target: {targetLocation.Container} @ {targetLocation.Slot}");
|
||||
|
||||
|
||||
if (sourceLocation.Container.IsSameContainerGroup(targetLocation.Container))
|
||||
{
|
||||
Services.Logger.Debug($"[OnPayload] Source and target are in the same container group; no move performed");
|
||||
|
||||
Reference in New Issue
Block a user