From 35819513fab103277a96cb6d17096e193a90139b Mon Sep 17 00:00:00 2001 From: bubblobill <45483160+bubblobill@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:48:56 +0800 Subject: [PATCH] Fixed check in ButtonGroup drag event drop to exit where there is no change in group for the same panel. --- .../client/ui/macrobuttons/buttongroups/ButtonGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/rptools/maptool/client/ui/macrobuttons/buttongroups/ButtonGroup.java b/src/main/java/net/rptools/maptool/client/ui/macrobuttons/buttongroups/ButtonGroup.java index 713ac6626b..3ad3e1b653 100644 --- a/src/main/java/net/rptools/maptool/client/ui/macrobuttons/buttongroups/ButtonGroup.java +++ b/src/main/java/net/rptools/maptool/client/ui/macrobuttons/buttongroups/ButtonGroup.java @@ -128,8 +128,8 @@ public void drop(DropTargetDropEvent event) { MacroButtonProperties oldMacroProps = new MacroButtonProperties(tempProperties); // stops players from moving macros into/from the Campaign/GM panels - // debounce first, ignore moves that change nothing - if (tempProperties.getGroup().equals(getMacroGroup())) { + // debounce first, ignore moves to the same group in the same panel + if (tempProperties.getGroup().equals(getMacroGroup()) && data.panelClass.equals(panelClass)) { event.dropComplete(false); } else if (!MapTool.getPlayer().isGM() && (panelClass.equals("CampaignPanel")