Skip to content

Commit

Permalink
Fix cannot drag into favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Dec 13, 2024
1 parent c9206ba commit 7d9ab3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public boolean drop(DraggingContext<Screen> context, DraggableComponent<?> compo

public Optional<RealRegionEntry<T>> checkDraggedStacks(DraggingContext<Screen> context, DraggableStack stack) {
EntrySerializer<?> serializer = stack.getStack().getDefinition().getSerializer();
if (serializer != null && stack instanceof RegionDraggableStack) {
if (serializer != null) {
try {
T regionEntry = stack instanceof RegionDraggableStack ? ((RegionDraggableStack<T>) stack).getEntry().getEntry().copy()
: listener.convertDraggableStack(context, stack);
Expand Down

0 comments on commit 7d9ab3e

Please sign in to comment.