Skip to content

Commit

Permalink
Merge pull request #4888 from bubblobill/campMoveMacro
Browse files Browse the repository at this point in the history
Modify ButtonGroup drag to check for no change
  • Loading branch information
cwisniew authored Sep 12, 2024
2 parents 0768d47 + 11e8665 commit c0df1db
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ public void drop(DropTargetDropEvent event) {
MacroButtonProperties oldMacroProps = new MacroButtonProperties(tempProperties);

// stops players from moving macros into/from the Campaign/GM panels
if (!MapTool.getPlayer().isGM()
// debounce first, ignore moves that change nothing
if (tempProperties.getGroup().equals(getMacroGroup())) {
event.dropComplete(false);
} else if (!MapTool.getPlayer().isGM()
&& (panelClass.equals("CampaignPanel")
|| panelClass.equals("GmPanel")
|| (data.panelClass.equals("CampaignPanel")
Expand Down

0 comments on commit c0df1db

Please sign in to comment.